/* Modern Admin Dashboard - Blue Theme */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
}

/* Page Container */
.page {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Side Navigation */
.side-navbar {
    background: linear-gradient(180deg, #1e3a5f 0%, #2c5282 100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.side-navbar-wrapper {
    background: transparent;
}

.sidenav-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 50%, #1565C0 100%);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.sidenav-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.sidenav-header-inner {
    position: relative;
    z-index: 1;
}

.sidenav-header-inner img {
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sidenav-header-inner img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.sidenav-header-inner h2 {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}

.sidenav-header-inner span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Side Menu */
.side-menu {
    background: transparent;
}

.side-menu > li > a {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.side-menu > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    transition: width 0.3s ease;
}

.side-menu > li > a:hover,
.side-menu > li > a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #2196F3;
    padding-left: 1.75rem;
}

.side-menu > li > a:hover::before,
.side-menu > li > a.active::before {
    width: 3px;
}

.side-menu > li > a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Dropdown Menu */
.side-menu .collapse li a {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.side-menu .collapse li a:hover {
    color: #2196F3;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 3.5rem;
}

/* Sidenav Heading */
.sidenav-heading {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.5rem 1.5rem 0.75rem;
    font-weight: 600;
}

/* Header Navbar */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand .brand-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-brand .brand-text .text-primary {
    color: #2196F3 !important;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dropdown Menu in Header */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 1rem;
    min-width: 280px;
}

.dropdown-item {
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
}

.dropdown-item:hover .msg-profile img {
    border-color: #fff;
}

.dropdown-item:hover h3,
.dropdown-item:hover small {
    color: #fff;
}

.msg-profile img {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.msg-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.msg-body small {
    color: #999;
    font-size: 0.8rem;
}

/* Badge */
.badge-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.5);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    transform: translateY(-2 peuvent;
}

/* Tables */
.table {
    background: #fff;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #2196F3;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(33, 150, 243, 0.05);
    transform: scale(1.01);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Forms */
.form-control,
.input-material {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.input-material:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    outline: none;
}

.input-material {
    background: transparent;
}

.label-material {
    color: #666;
    font-weight: 500;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 50%, #0D47A1 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.form-inner {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.form-inner .logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.form-inner .logo .text-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group-material {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group-material input {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group-material input:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-header .close {
    color: #fff;
    opacity: 0.9;
}

.modal-header .close:hover {
    opacity: 1;
}

/* Statistics Section */
.statistics {
    padding: 2rem 0;
}

.data-usage h2 {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.data-usage img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.data-usage img:hover {
    box-shadow: 0 15px 40px rgba(33, 150, 243, 0.2);
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .side-navbar {
        transform: translateX(-100%);
    }
    
    .side-navbar.active {
        transform: translateX(0);
    }
    
    .page {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.form-inner {
    animation: fadeInUp 0.6s ease;
}

/* Toast/Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-primary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565C0;
    border-left: 4px solid #2196F3;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* CKEditor Enhancement */
.cke_top {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 2px solid #2196F3 !important;
}

/* Additional Modern Effects */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #2196F3 !important;
}

/* Loading Spinner */
.spinner-border {
    border-color: #2196F3;
    border-top-color: transparent;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #2196F3;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}
