/* Admin Panel Styling - Colorful Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500&display=swap');

/* General Styles */
body {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar styles for Admin */
.navbar-custom {
    background: linear-gradient(to right, #0071c2 , #0071c2 ); /* Purple gradient */
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar-custom .navbar-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar-custom .navbar-nav .nav-link {
    color: white;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    border-radius: 8px;
    margin: 0 5px;
}

.navbar-custom .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #a5f3fc; /* Light teal */
    transform: translateY(-2px);
}

.navbar-custom .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: #a5f3fc; /* Light teal */
}

.navbar-custom .navbar-nav .nav-link i {
    margin-right: 5px;
}

/* Welcome message styles */
.welcome-message {
    margin-top: 50px;
    text-align: center;
    color: #0071c2/* Purple */
    animation: fadeIn 1s ease-in-out;
}

.welcome-message h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(109, 40, 217, 0.2);
}

/* Link box styles */
.link-box {
    text-decoration: none;
    color: inherit;
    margin: 0 15px;
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #0071c2 /* Purple accent */
}

.link-box i {
    font-size: 3rem;
    color: #0071c2 /* Purple */
    transition: transform 0.3s, color 0.3s;
}

.link-box p {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #0071c2 /* Purple */
    font-weight: 500;
}

.link-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.link-box:hover i {
    transform: scale(1.2);
    color: #06b6d4; /* Teal */
}

/* Button styles */
.btn-custom-blue {
    background: linear-gradient(to right, #06b6d4, #22d3ee); /* Teal gradient */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.btn-custom-blue:hover {
    background: linear-gradient(to right, #22d3ee, #06b6d4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Card styles */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.card-header.bg-primary {
    background: linear-gradient(to right, #0071c2, #0071c2) !important; /* Purple gradient */
}

.card-body {
    padding: 30px;
}

/* Form styles */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0071c2; /* Light purple */
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.form-control-file {
    padding: 10px 0;
}

/* Button styles */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, #0071c2, #0071c2) !important; /* Purple gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4);
}

.btn-success {
    background: linear-gradient(to right, #10b981, #34d399) !important; /* Green gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(to right, #f59e0b, #fbbf24) !important; /* Amber gradient */
    border: none;
    color: white !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: linear-gradient(to right, #ef4444, #f87171) !important; /* Red gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: linear-gradient(to right, #6b7280, #9ca3af) !important; /* Gray gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

/* Table styles */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(109, 40, 217, 0.02); /* Very light purple */
}

.table-striped tbody tr {
    transition: all 0.3s ease;
}

.table-striped tbody tr:hover {
    background-color: rgba(109, 40, 217, 0.05);
}

.thead-dark {
    background: linear-gradient(to right, #0071c2, #0071c2) !important; /* Purple gradient */
}

.thead-dark th {
    border: none !important;
    color: white !important;
    font-weight: 500;
    padding: 15px !important;
}

/* Badge styles */
.badge {
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge-success {
    background: linear-gradient(to right, #10b981, #34d399) !important; /* Green gradient */
    color: white;
}

.badge-warning {
    background: linear-gradient(to right, #f59e0b, #fbbf24) !important; /* Amber gradient */
    color: white;
}

.badge-danger {
    background: linear-gradient(to right, #ef4444, #f87171) !important; /* Red gradient */
    color: white;
}

.badge-secondary {
    background: linear-gradient(to right, #6b7280, #9ca3af) !important; /* Gray gradient */
    color: white;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
    color: #10b981;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(to right, rgba(239, 68, 68, 0.1), rgba(248, 113, 113, 0.1));
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: linear-gradient(to right, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    color: #f59e0b;
    border-left: 4px solid #f59e0b;
}

/* Footer */
footer {
    background: linear-gradient(to right, #1e293b, #334155); /* Dark slate gradient */
    color: white;
    padding: 20px 0;
    margin-top: auto;
}

/* Login page specific styles */
.vh-100 {
    height: 100vh;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .card-header {
        padding: 15px;
    }
    
    .card-body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .navbar-custom .navbar-nav .nav-link {
        margin: 5px 0;
    }
    
    .btn {
        padding: 8px 16px;
    }
    
    .welcome-message h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .card-header {
        padding: 12px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .form-control {
        padding: 10px;
    }
    
    .badge {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}