/* Write your custom CSS here */

/* Poppins Font Weight Classes */
.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* Modern Trendy Design Theme - Violet & Purple */

/* Global Modern Styling */
body {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 25%, #C084FC 50%, #DDD6FE 75%, #E9D5FF 100%);
    background-attachment: fixed;
    font-family: "Poppins", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
}

.mn-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px 0 0 0;
    margin: 20px;
    margin-left: 280px;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
    min-height: calc(100vh - 40px);
}

/* Modern Header Styling */
.mn-header {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #A855F7 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.mn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-title {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.header-title span {
    opacity: 0.9;
    font-size: 12px;
    text-transform: none;
}

/* Modern Navigation */
nav {
    background: transparent !important;
    box-shadow: none !important;
}

nav .nav-wrapper {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    margin: 10px 20px;
    padding: 0 20px;
}

nav ul li a {
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 20px;
    margin: 0 5px;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Modern Sidebar */
.side-nav {
    background: linear-gradient(180deg, #ffffff 0%, #F8F9FF 50%, #F3F4FF 100%);
    box-shadow: 4px 0 20px rgba(139, 92, 246, 0.1);
    border-right: 1px solid rgba(139, 92, 246, 0.1);
}

.sidebar-profile {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.sidebar-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    animation: profileGlow 4s ease-in-out infinite;
}

@keyframes profileGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.sidebar-profile-image img {
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.sidebar-profile-image img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
}

.sidebar-profile-info p {
    font-weight: 600;
    margin: 10px 0 5px 0;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.sidebar-profile-info span {
    opacity: 0.8;
    font-size: 13px;
    position: relative;
    z-index: 2;
}

/* Modern Sidebar Menu */
.side-nav ul li a {
    color: #6B46C1 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin: 2px 0;
    position: relative;
    overflow: hidden;
}

.side-nav ul li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.side-nav ul li a:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%) !important;
    color: #8B5CF6 !important;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.side-nav ul li a:hover:before {
    transform: scaleY(1);
}

.side-nav ul li a.active-page {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    animation: activePulse 2s ease-in-out infinite;
}

.side-nav ul li a.active-page:before {
    transform: scaleY(1);
    background: rgba(255,255,255,0.3);
}

@keyframes activePulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(139, 92, 246, 0.5); }
}

/* Modern Cards */
.card {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: none;
    transition: all 0.3s ease;
    background: #ffffff;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-content {
    padding: 25px;
}

.card-title {
    color: #1E40AF !important;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    text-shadow: 0 1px 2px rgba(30, 64, 175, 0.1);
}

.card-title:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border-radius: 2px;
    animation: titleUnderline 1.5s ease-out;
}

@keyframes titleUnderline {
    0% { width: 0; }
    100% { width: 60px; }
}

/* Blue Headings */
h1, h2, h3, h4, h5, h6 {
    color: white!important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(30, 64, 175, 0.1);
}

.page-title h4 {
    color: #1E40AF !important;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-title h4::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border-radius: 2px;
    animation: pageTitleUnderline 2s ease-out;
}

@keyframes pageTitleUnderline {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Modern Buttons with Animation */
.btn {
    border-radius: 25px;
    font-weight: 600;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    color: white !important;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
    animation: btnShimmer 3s infinite;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    animation: btnBounce 0.6s ease;
}

.btn:hover:before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

@keyframes btnShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes btnBounce {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.08); }
    100% { transform: translateY(-3px) scale(1.05); }
}

.btn-primary, .btn.blue {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover, .btn.blue:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-success, .btn.green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover, .btn.green:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-danger, .btn.red {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover, .btn.red:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.btn-warning, .btn.orange {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover, .btn.orange:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* Modern Tables */
table.dataTable {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.1);
}

table.dataTable thead th {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    
    font-weight: 600;
    border: none;
    padding: 15px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    position: relative;
}

table.dataTable thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: tableHeaderShimmer 3s ease-in-out infinite;
}

@keyframes tableHeaderShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

table.dataTable tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

table.dataTable tbody tr:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

table.dataTable tbody td {
    padding: 15px;
    border: none;
    color: #495057;
    transition: all 0.3s ease;
}

table.dataTable tbody tr:hover td {
    color: #6B46C1;
}

/* Modern Form Elements */
.input-field input[type=text]:focus,
.input-field input[type=password]:focus,
.input-field input[type=email]:focus,
.input-field textarea:focus {
    border-bottom: 2px solid #8B5CF6 !important;
    box-shadow: 0 1px 0 0 #8B5CF6 !important;
}

.input-field input[type=text],
.input-field input[type=password],
.input-field input[type=email],
.input-field textarea {
    border-radius: 8px;
    padding: 0 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.input-field input[type=text]:focus,
.input-field input[type=password]:focus,
.input-field input[type=email]:focus,
.input-field textarea:focus {
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

/* Login form select styling */
.login-container .input-field select {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-container .input-field select:focus {
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15) !important;
}

/* Icon styling for login form */
.login-container .input-field .prefix {
    color: #8B5CF6 !important;
    font-size: 24px !important;
    transition: all 0.3s ease;
}

.login-container .input-field input:focus ~ .prefix,
.login-container .input-field select:focus ~ .prefix {
    color: #A855F7 !important;
    transform: scale(1.1);
}

.btn-secondary {
    background: linear-gradient(135deg, #6B46C1 0%, #7C3AED 100%) !important;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5B21B6 0%, #6B46C1 100%) !important;
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.5);
}

.btn-small {
    padding: 0 16px;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
}

/* Modern Login Page */
.login-page {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 25%, #C084FC 50%, #DDD6FE 75%, #E9D5FF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.3) 0%, transparent 50%);
    animation: loginBackground 8s ease-in-out infinite;
}

@keyframes loginBackground {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2), 0 0 1px rgba(139, 92, 246, 0.1);
    max-width: 400px;
    width: 100%;
    margin: 20px;
    position: relative;
    z-index: 2;
    animation: loginSlideIn 1s ease-out;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

@keyframes loginSlideIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.login-container h4 {
    color: #1E40AF !important;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
}

/* Login form field spacing */
.login-container .col.s12 {
    padding: 0 0 15px 0;
}

.login-container form {
    margin: 0;
}

.login-container .input-field label {
    color: #666 !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

.login-container h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border-radius: 2px;
    animation: loginTitleUnderline 1.5s ease-out 0.5s both;
}

@keyframes loginTitleUnderline {
    0% { width: 0; }
    100% { width: 80px; }
}

.login-container .btn {
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    height: 48px !important;
    line-height: 48px !important;
    border-radius: 8px !important;
}

.login-container .btn:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #764ba2 0%, #5a3980 100%) !important;
}

.login-container .btn:active {
    transform: translateY(0);
}

/* Modern Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: cardFloat 3s ease-in-out infinite;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: cardGlow 4s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes cardGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
    animation: cardHover 0.3s ease;
}

@keyframes cardHover {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-8px) scale(1.02); }
}

.stats-card .card-title {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.stats-card .card-value {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Modern Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

/* Modern Pagination */
.pagination li a {
    border-radius: 50%;
    margin: 0 2px;
    transition: all 0.3s ease;
    color: #8B5CF6 !important;
}

.pagination li a:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    transform: scale(1.1);
}

.pagination li.active a {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    animation: paginationPulse 2s ease-in-out infinite;
}

@keyframes paginationPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5); }
}

/* Modern Dropdowns */
.dropdown-content {
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
    border: none;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.dropdown-content li a {
    transition: all 0.3s ease;
    color: #6B46C1;
}

.dropdown-content li a:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: #8B5CF6;
    transform: translateX(5px);
}

/* Modern Modal */
.modal {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.modal .modal-content {
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

.modal .modal-footer {
    border-radius: 0 0 15px 15px;
    background: linear-gradient(135deg, #F8F9FF 0%, #E9D5FF 100%);
}

/* Modern Loading Spinner */
.preloader-wrapper {
    margin: 50px auto;
}

.spinner-layer {
    border-color: #667eea;
}

/* Modern Tabs */
.tabs {
    background: transparent;
}

.tabs .tab a {
    color: #6B46C1;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tabs .tab a:hover {
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.tabs .tab a.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    color: white;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    animation: tabActive 0.5s ease;
}

@keyframes tabActive {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tabs .indicator {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    height: 3px;
}

/* Modern Breadcrumbs */
.breadcrumb {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    padding: 10px 20px;
}

.breadcrumb a {
    color: #667eea;
    font-weight: 500;
}

.breadcrumb:before {
    color: #667eea;
}

/* Modern Badges */
.badge {
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.green {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.badge.red {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.badge.orange, .badge.yellow {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.badge.blue {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

/* Modern Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

/* Mobile Responsive Enhancements */

/* Mobile Navigation Improvements */
@media only screen and (max-width: 768px) {
    .side-nav {
        width: 280px !important;
    }

    .header-title {
        font-size: 16px !important;
        margin-left: 10px;
    }

    .header-title span {
        font-size: 14px !important;
    }

    /* Mobile menu button */
    .material-design-hamburger {
        margin-left: 10px;
    }

    /* Adjust sidebar profile for mobile */
    .sidebar-profile {
        padding: 15px;
    }

    .sidebar-profile-image img {
        width: 50px;
        height: 50px;
    }

    .sidebar-profile-info p {
        font-size: 14px;
        margin: 5px 0;
    }

    .sidebar-profile-info span {
        font-size: 12px;
    }

    /* Mobile card spacing */
    .card {
        margin: 10px 5px;
    }

    .card-content {
        padding: 15px;
    }

    /* Mobile table improvements */
    .responsive-table {
        font-size: 12px;
    }

    .responsive-table th,
    .responsive-table td {
        padding: 8px 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    /* Mobile buttons */
    .btn {
        padding: 0 16px;
        height: 36px;
        font-size: 12px;
        min-width: 80px;
    }

    .btn-large {
        height: 40px;
        padding: 0 20px;
    }

    /* Mobile form elements */
    .input-field input,
    .input-field textarea,
    .input-field select {
        font-size: 14px;
        padding: 8px;
    }

    .input-field label {
        font-size: 12px;
        top: -10px;
    }

    /* Mobile modal improvements */
    .modal {
        width: 95% !important;
        max-height: 90% !important;
        margin: 5% auto;
    }

    .modal-content {
        padding: 15px;
    }

    /* Mobile page title */
    .page-title {
        font-size: 18px !important;
        padding: 10px;
    }

    /* Mobile stats cards */
    .stats-card {
        margin-bottom: 10px;
    }

    .stats-card .card-content {
        padding: 10px;
    }

    /* Mobile date inputs */
    input[type="date"] {
        font-size: 14px;
        padding: 8px;
        height: auto;
    }

    /* Mobile select dropdowns */
    select {
        font-size: 14px;
        padding: 8px;
        height: auto;
    }

    /* Mobile footer */
    .footer p {
        font-size: 10px;
        padding: 10px;
    }
}

/* Extra small screens */
@media only screen and (max-width: 480px) {
    .header-title {
        font-size: 14px !important;
    }

    .header-title span {
        font-size: 12px !important;
    }

    .card-content {
        padding: 10px;
    }

    .responsive-table th,
    .responsive-table td {
        padding: 6px 2px;
        font-size: 11px;
        max-width: 80px;
    }

    .btn {
        padding: 0 12px;
        height: 32px;
        font-size: 11px;
        min-width: 70px;
    }

    .page-title {
        font-size: 16px !important;
        padding: 8px;
    }

    /* Stack form elements vertically on very small screens */
    .input-field {
        margin-bottom: 15px;
    }

    /* Mobile filter buttons */
    .row .col {
        margin-bottom: 10px;
    }
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
    .btn,
    .waves-effect {
        min-height: 44px;
        min-width: 44px;
    }

    .sidebar-menu li a {
        padding: 12px 16px;
        min-height: 44px;
    }

    .collapsible-header {
        padding: 12px 16px;
        min-height: 44px;
    }

    /* Larger touch targets for form elements */
    .input-field input,
    .input-field textarea,
    .input-field select {
        min-height: 44px;
    }
}

/* Landscape orientation adjustments */
@media only screen and (max-width: 768px) and (orientation: landscape) {
    .card-content {
        padding: 8px;
    }

    .page-title {
        font-size: 16px;
        padding: 5px;
    }
}

/* Mobile table horizontal scroll */
@media only screen and (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .responsive-table {
        min-width: 600px;
    }
}

/* Mobile modal full screen on small devices */
@media only screen and (max-width: 480px) {
    .modal {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        margin: 0;
        top: 0 !important;
        left: 0 !important;
    }

    .modal-content {
        height: calc(100% - 56px);
        overflow-y: auto;
    }
}

/* Mobile loading spinner */
@media only screen and (max-width: 768px) {
    .loader {
        width: 60px;
        height: 60px;
    }

    .preloader-wrapper.big {
        width: 60px;
        height: 60px;
    }
}

/* Mobile-friendly data tables */
@media only screen and (max-width: 768px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
        margin: 5px 0;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 150px;
        font-size: 12px;
    }
}

/* Mobile navigation active states */
@media only screen and (max-width: 768px) {
    .sidebar-menu li.active a {
        background-color: rgba(0, 150, 136, 0.1);
        border-left: 4px solid #009688;
    }
}

/* Mobile form validation */
@media only screen and (max-width: 768px) {
    .errorWrap,
    .succWrap {
        padding: 8px;
        margin: 5px 0;
        font-size: 12px;
    }
}

/* Mobile accessibility improvements */
@media only screen and (max-width: 768px) {
    .errorWrap,
    .succWrap {
        padding: 8px;
        margin: 5px 0;
        font-size: 12px;
    }
}

/* Mobile date picker improvements */
@media only screen and (max-width: 768px) {
    input[type="date"]::-webkit-calendar-picker-indicator {
        padding: 5px;
        cursor: pointer;
    }

    input[type="date"]::-webkit-inner-spin-button,
    input[type="date"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
}

/* Mobile loading overlay */
.mobile-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.mobile-loading-overlay .preloader-wrapper {
    width: 50px;
    height: 50px;
}

/* Touch feedback */
.touch-active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Mobile scrolling performance */
.scrolling {
    pointer-events: none;
}

.scrolling .btn,
.scrolling .waves-effect {
    pointer-events: auto;
}

/* Mobile table wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

/* Mobile modal fullscreen */
@media only screen and (max-width: 480px) {
    .mobile-fullscreen {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .mobile-fullscreen .modal-content {
        height: calc(100vh - 56px);
        overflow-y: auto;
        padding: 20px;
    }

    .mobile-fullscreen .modal-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 10px;
    }

/* Mobile device class */
.mobile-device {
    /* Add any mobile-specific styles here */
}

/* Mobile gesture feedback */
@media (pointer: coarse) {
    .sidebar-menu li a:hover,
    .btn:hover {
        background-color: transparent !important;
    }

    .sidebar-menu li a:active,
    .btn:active {
        background-color: rgba(0, 0, 0, 0.1) !important;
    }
}

/* Mobile focus states */
@media only screen and (max-width: 768px) {
    .input-field input:focus,
    .input-field textarea:focus,
    .input-field select:focus {
        border-bottom: 1px solid #009688;
        box-shadow: 0 1px 0 0 #009688;
    }

    .btn:focus {
        background-color: #00897b;
    }
}

/* Mobile print styles */
@media print {
    .side-nav,
    .material-design-hamburger,
    .modal,
    .mobile-loading-overlay {
        display: none !important;
    }

    .card {
        break-inside: avoid;
        margin: 10px 0;
    }

    .responsive-table {
        font-size: 10px;
    }
}

/* Admin Navigation Cards - Universal Styling */
.nav-cards-container {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 25%, #C084FC 50%, #DDD6FE 75%, #E9D5FF 100%);
    padding: 40px 20px;
    margin: 0;
}

.nav-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    min-height: 180px;
    cursor: pointer;
    border: 2px solid transparent;
}

.nav-card i {
    font-size: 48px;
    color: #8B5CF6;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.nav-card span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #333;
    transition: all 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25);
    border-color: #8B5CF6;
}

.nav-card:hover i {
    color: #A855F7;
    transform: scale(1.15);
}

.nav-card:hover span {
    color: #8B5CF6;
}

.nav-card.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    color: white;
    border-color: #8B5CF6;
}

.nav-card.active i {
    color: white;
}

.nav-card.active span {
    color: white;
}

.nav-card.active:hover {
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

/* Responsive Grid for Tablets */
@media (max-width: 768px) {
    .nav-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }

    .nav-card {
        padding: 20px 15px;
        min-height: 150px;
    }

    .nav-card i {
        font-size: 36px;
    }

    .nav-card span {
        font-size: 12px;
    }
}

/* Responsive Grid for Mobile */
@media (max-width: 480px) {
    .nav-cards-container {
        padding: 20px 10px;
    }

    .nav-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }

    .nav-card {
        padding: 15px 10px;
        min-height: 120px;
    }

    .nav-card i {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .nav-card span {
        font-size: 11px;
    }
}

/* ============================================
   RESPONSIVE LAYOUT STYLES - MOBILE & DESKTOP
   ============================================ */

/* Desktop View - Default (1024px and above) */
@media (min-width: 1025px) {
    /* Main Content Area */
    .mn-content {
        margin-left: 280px;
        margin: 20px;
        min-height: calc(100vh - 40px);
    }

    /* Tables */
    table {
        font-size: 14px;
    }

    table thead tr th {
        padding: 15px 10px;
        font-weight: 600;
    }

    table tbody tr td {
        padding: 12px 10px;
        vertical-align: middle;
    }

    /* Cards */
    .card {
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    }

    .card-content {
        padding: 24px;
    }

    /* Forms */
    .input-field {
        margin-bottom: 20px;
    }

    .input-field input,
    .input-field select,
    .input-field textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Buttons */
    .btn {
        padding: 0 30px;
        height: 45px;
        line-height: 45px;
        font-size: 14px;
    }

    /* Grid Columns */
    .col.s12 {
        width: 100%;
    }

    .col.m6 {
        width: 48%;
    }

    .col.m4 {
        width: 31.333%;
    }
}

/* Tablet View - Medium Devices (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Main Content Area */
    .mn-content {
        margin-left: 250px;
        margin: 15px;
        min-height: calc(100vh - 30px);
    }

    /* Sidebar */
    .left-sidebar {
        width: 250px;
    }

    /* Tables */
    table {
        font-size: 13px;
    }

    table thead tr th {
        padding: 12px 8px;
        font-weight: 600;
    }

    table tbody tr td {
        padding: 10px 8px;
    }

    /* Cards */
    .card {
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .card-content {
        padding: 18px;
    }

    /* Forms */
    .input-field {
        margin-bottom: 15px;
    }

    .input-field input,
    .input-field select,
    .input-field textarea {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Buttons */
    .btn {
        padding: 0 20px;
        height: 40px;
        line-height: 40px;
        font-size: 13px;
    }

    /* Grid */
    .col.s12 {
        width: 100%;
    }

    .col.m6 {
        width: 49%;
    }

    .col.m4 {
        width: 32%;
    }

    /* Nav Cards */
    .nav-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 15px;
    }

    .nav-card {
        min-height: 150px;
        padding: 20px 15px;
    }

    .nav-card i {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .nav-card span {
        font-size: 12px;
    }
}

/* Mobile View - Small Devices (480px to 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    /* Main Content Area */
    .mn-content {
        margin-left: 0;
        margin: 10px;
        border-radius: 0;
        min-height: auto;
    }

    /* Sidebar */
    .left-sidebar {
        width: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .left-sidebar.active {
        transform: translateX(0);
    }

    /* Tables - Horizontal Scroll */
    .card-content {
        overflow-x: auto;
    }

    table {
        font-size: 12px;
        min-width: 500px;
    }

    table thead tr th {
        padding: 10px 6px;
        font-weight: 600;
        background: #8B5CF6;
        color: white;
    }

    table tbody tr td {
        padding: 8px 6px;
        font-size: 11px;
    }

    table tbody tr:nth-child(odd) {
        background: #f5f5f5;
    }

    /* Cards */
    .card {
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .card-content {
        padding: 12px;
    }

    .card-title {
        font-size: 14px !important;
        margin-bottom: 8px;
    }

    /* Forms */
    .input-field {
        margin-bottom: 12px;
    }

    .input-field input,
    .input-field select,
    .input-field textarea {
        padding: 6px 8px;
        font-size: 12px;
    }

    .input-field label {
        font-size: 12px;
    }

    /* Buttons */
    .btn {
        padding: 0 15px;
        height: 36px;
        line-height: 36px;
        font-size: 12px;
        width: 100%;
        margin-bottom: 8px;
    }

    .btn-group {
        display: flex;
        gap: 5px;
    }

    .btn-group .btn {
        flex: 1;
    }

    /* Grid */
    .col.s12,
    .col.m6,
    .col.m4 {
        width: 100%;
        margin-left: 0;
    }

    /* Nav Cards */
    .nav-cards-container {
        padding: 20px 10px;
    }

    .nav-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 10px;
    }

    .nav-card {
        min-height: 120px;
        padding: 15px 10px;
        border-radius: 8px;
    }

    .nav-card i {
        font-size: 32px;
        margin-bottom: 6px;
    }

    .nav-card span {
        font-size: 10px;
        text-align: center;
        word-break: break-word;
    }

    /* Page Title */
    .page-title {
        font-size: 18px !important;
        padding: 10px 0;
    }

    /* Modals */
    .modal {
        width: 95% !important;
        max-height: 90vh;
        border-radius: 8px;
    }

    /* Action Buttons in Tables */
    .action-btn {
        display: inline-block;
        padding: 4px 8px;
        font-size: 11px;
        margin: 2px;
    }
}

/* Extra Small Devices (Below 480px) */
@media (max-width: 479px) {
    /* Main Content Area */
    .mn-content {
        margin-left: 0;
        margin: 5px;
        border-radius: 0;
        padding: 0;
        min-height: auto;
    }

    /* Header */
    .mn-header {
        padding: 10px;
    }

    .header-title {
        font-size: 14px !important;
    }

    /* Sidebar */
    .left-sidebar {
        width: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: 80vh;
        overflow-y: auto;
    }

    .left-sidebar.active {
        transform: translateX(0);
    }

    /* Menu Toggle Button */
    .menu-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #8B5CF6;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 998;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    }

    /* Tables - Full Width with Horizontal Scroll */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 11px;
        min-width: 400px;
        width: 100%;
    }

    table thead tr {
        background: #8B5CF6;
    }

    table thead tr th {
        padding: 8px 4px;
        font-weight: 600;
        color: white;
        font-size: 10px;
    }

    table tbody tr td {
        padding: 6px 4px;
        font-size: 10px;
        word-break: break-word;
    }

    table tbody tr:nth-child(odd) {
        background: #f9f9f9;
    }

    table tbody tr:hover {
        background: #f0e6ff;
    }

    /* Cards */
    .card {
        margin-bottom: 10px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .card-content {
        padding: 8px;
    }

    .card-title {
        font-size: 13px !important;
        margin-bottom: 5px;
        word-break: break-word;
    }

    /* Forms */
    .input-field {
        margin-bottom: 10px;
    }

    .input-field input,
    .input-field select,
    .input-field textarea {
        padding: 4px 6px;
        font-size: 11px;
        width: 100% !important;
    }

    .input-field label {
        font-size: 11px;
        transform: translateY(-20px);
        left: 0;
    }

    .input-field input:focus ~ label,
    .input-field input.filled ~ label {
        font-size: 12px;
        transform: translateY(-28px);
    }

    /* Buttons */
    .btn {
        padding: 0 10px;
        height: 32px;
        line-height: 32px;
        font-size: 11px;
        width: 100%;
        margin-bottom: 6px;
        border-radius: 6px;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .btn-group .btn {
        flex: 1;
    }

    /* Grid */
    .col.s12,
    .col.m6,
    .col.m4,
    .col.l6 {
        width: 100%;
        margin-left: 0;
    }

    /* Nav Cards */
    .nav-cards-container {
        padding: 15px 8px;
    }

    .nav-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    .nav-card {
        min-height: 100px;
        padding: 10px 8px;
        border-radius: 6px;
        flex-direction: column;
    }

    .nav-card i {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .nav-card span {
        font-size: 9px;
        text-align: center;
        line-height: 1.2;
    }

    /* Page Title */
    .page-title {
        font-size: 16px !important;
        padding: 8px 0;
    }

    /* Modals */
    .modal {
        width: 98% !important;
        max-height: 95vh;
        border-radius: 6px;
        top: 1% !important;
    }

    /* Action Buttons */
    .action-btn {
        display: inline-block;
        padding: 3px 6px;
        font-size: 9px;
        margin: 2px;
        border-radius: 4px;
    }

    /* Status Badges */
    .badge {
        padding: 4px 8px;
        font-size: 9px;
        border-radius: 4px;
    }

    /* Success/Error Messages */
    .succWrap,
    .errWrap {
        padding: 10px;
        margin: 8px 0;
        font-size: 11px;
        border-radius: 6px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .nav-cards-container,
    .left-sidebar,
    .mn-header,
    .no-print,
    .btn,
    .action-btn {
        display: none !important;
    }

    .mn-content {
        margin: 0;
        box-shadow: none;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    table th,
    table td {
        border: 1px solid #000;
        padding: 8px;
    }
}