﻿
:root {
    --primary-blue: #1e3a8a; /* Deep blue for buttons, headers */
    --secondary-blue: #3b82f6; /* Bright blue for hover, gradients */
    --accent-blue: #60a5fa; /* Light blue for highlights */
    --gradient-purple: #7c3aed; /* Purple for gradient accents */
    --dark-neutral: #111827; /* Near-black for text, borders */
    --light-neutral: #f3f4f6; /* Off-white for backgrounds */
    --white: #ffffff; /* White for text */
    --glow-accent: rgba(59, 130, 246, 0.3); /* Glow effect */
}
a{
    text-decoration:none !important;
}
body{
    background-color:var(--glow-accent);
}
.btn-add {
    /* Base button styles */
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--glow-accent);
}

    /* Hover effect */
    .btn-add:hover {
        background-color: var(--secondary-blue);
        box-shadow: 0 4px 12px var(--glow-accent);
        transform: translateY(-2px);
    }

    /* Active effect */
    .btn-add:active {
        background-color: var(--accent-blue);
        transform: translateY(0);
        box-shadow: 0 2px 6px var(--glow-accent);
    }

    /* Focus effect for accessibility */
    .btn-add:focus {
        outline: 2px solid var(--gradient-purple);
        outline-offset: 2px;
    }

.btn-reset {
    /* Base button styles */
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--glow-accent);
}

    /* Hover effect */
    .btn-reset:hover {
        background-color: var(--secondary-blue);
        box-shadow: 0 4px 12px var(--glow-accent);
        transform: translateY(-2px);
    }

    /* Active effect */
    .btn-reset:active {
        background-color: var(--accent-blue);
        transform: translateY(0);
        box-shadow: 0 2px 6px var(--glow-accent);
    }

    /* Focus effect for accessibility */
    .btn-reset:focus {
        outline: 2px solid var(--gradient-purple);
        outline-offset: 2px;
    }
/* Edit Button (tbutton) */
.tbutton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--secondary-blue); /* Bright blue for Edit */
    color: var(--white);
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px var(--glow-accent);
}

    .tbutton:hover {
        background-color: var(--accent-blue); /* Lighter blue on hover */
        box-shadow: 0 6px 14px rgba(96, 165, 250, 0.5); /* Enhanced glow */
        transform: translateY(-1px) scale(1.05); /* Slight lift and scale */
    }

    .tbutton:active {
        background-color: var(--primary-blue); /* Darker blue when clicked */
        transform: translateY(0) scale(1); /* Reset scale */
        box-shadow: 0 2px 4px var(--glow-accent);
    }

    .tbutton:focus {
        outline: 2px solid var(--gradient-purple);
        outline-offset: 2px;
    }

/* Delete Button (tdbutton) */
.tdbutton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #dc2626; /* Bright red for Delete */
    color: var(--white);
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3); /* Red-based glow */
}

    .tdbutton:hover {
        background-color: #f87171; /* Lighter red on hover */
        box-shadow: 0 6px 14px rgba(248, 113, 113, 0.5); /* Enhanced red glow */
        transform: translateY(-1px) scale(1.05); /* Slight lift and scale */
    }

    .tdbutton:active {
        background-color: #b91c1c; /* Darker red when clicked */
        transform: translateY(0) scale(1); /* Reset scale */
        box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    }

    .tdbutton:focus {
        outline: 2px solid var(--gradient-purple);
        outline-offset: 2px;
    }


/* Override Bootstrap btn-secondary (Close button) */
.btn-secondary {
    padding: 8px 16px; /* Consistent with table buttons */
    border-radius: 6px; /* Matches tbutton/tdbutton */
    font-size: 14px; /* Smaller for table/modals */
    font-weight: 500; /* Medium weight for clarity */
    transition: all 0.2s ease; /* Smooth transitions */
    box-shadow: 0 2px 6px var(--glow-accent); /* Theme-consistent glow */
}

    .btn-secondary:hover {
        transform: translateY(-2px); /* Subtle lift, removed scale */
        border: 1px solid rgba(108, 117, 125, 0.8); /* Subtle border enhancement */
    }

    .btn-secondary:active {
        transform: translateY(0); /* Reset lift */
        box-shadow: 0 2px 4px var(--glow-accent); /* Reduced shadow */
    }

    .btn-secondary:focus {
        outline: 2px solid var(--gradient-purple); /* Theme-consistent focus */
        outline-offset: 2px;
    }

/* Override Bootstrap btn-primary (Save button) */
.btn-primary {
    padding: 8px 16px; /* Consistent with table buttons */
    border-radius: 6px; /* Matches tbutton/tdbutton */
    font-size: 14px; /* Smaller for table/modals */
    font-weight: 500; /* Medium weight for clarity */
    transition: all 0.2s ease; /* Smooth transitions */
    box-shadow: 0 2px 6px var(--glow-accent); /* Theme-consistent glow */
}

    .btn-primary:hover {
        transform: translateY(-2px); /* Subtle lift, removed scale */
        border: 1px solid rgba(13, 110, 253, 0.8); /* Subtle border enhancement */
    }

    .btn-primary:active {
        transform: translateY(0); /* Reset lift */
        box-shadow: 0 2px 4px var(--glow-accent); /* Reduced shadow */
    }

    .btn-primary:focus {
        outline: 2px solid var(--gradient-purple); /* Theme-consistent focus */
        outline-offset: 2px;
    }

/* Override DataTables cell padding and font size */
.dataTable th,
.dataTable td {
    font-size: 0.9rem; /* Smaller font size */
    padding: 5px !important; /* Reduce padding (override DataTables default) */
}

/* Reduce DataTables wrapper elements (search bar, pagination, etc.) */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    font-size: 1rem; /* Smaller font for search and pagination */
    padding: 0.2rem; /* Less padding */
}

/* Reduce spacing around the table */
.dataTables_wrapper {
    margin: 0;
    padding: 0;
}

.tfont-Color {
    /* If this has large font-size or padding, override it */
    font-size: 0.85rem !important;
    padding: 0.3rem !important;
}

.tbutton, .tdbutton {
    font-size: 1rem; /* Smaller buttons */
    padding: 0.2rem 0.5rem; /* Compact button padding */
}

/* Loading Animation Container */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px; /* Matches table body height */
    position: relative;
}

/* Snake-like Rings */
.snake-ring {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid transparent;
    border-top-color: var(--secondary-blue);
    border-radius: 50%;
    animation: snake-spin 1.2s linear infinite;
}

    .snake-ring:nth-child(2) {
        width: 40px;
        height: 40px;
        border-top-color: var(--gradient-purple);
        animation-direction: reverse;
        animation-duration: 1.4s;
    }

    .snake-ring:nth-child(3) {
        width: 30px;
        height: 30px;
        border-top-color: var(--accent-blue);
        animation-duration: 1.6s;
    }

/* Snake-like Rotation with Scale */
@keyframes snake-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Fade-in Animation for Table Rows */
.fade-in-row {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style for DataTables processing indicator */
div.dataTables_processing {
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.status-active {
    color: #28a745; /* green */
    font-weight: 600;
}

.status-inactive {
    color: #dc3545; /* red */
    font-weight: 600;
}
