/* Variables */
:root {
    --primary-gradient-dark: linear-gradient(135deg, #1e1e2f, #2e2e4f);
    --primary-gradient-light: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    --success-gradient: linear-gradient(135deg, #28a745, #155724);
    --warning-gradient: linear-gradient(135deg, #ffc107, #b58600);
    --danger-gradient: linear-gradient(135deg, #dc3545, #a71d2a);
    --info-gradient: linear-gradient(135deg, #17a2b8, #0c5460);
    --card-shadow-dark: 0 8px 20px rgba(0, 0, 0, 0.3);
    --card-shadow-light: 0 8px 20px rgba(0, 0, 0, 0.1);
    --transition-normal: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* General Styles */
body {
    background: linear-gradient(to bottom, white, #fef0ff);
    max-width: 100%;
    line-height: 1.5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
    z-index: -1000;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #007bff;
}

/* Link hover effect with underline animation */
a.animated-link {
    position: relative;
}

a.animated-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

a.animated-link:hover::after {
    width: 100%;
}

/* Fade-in animation for elements */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pulse animation for attention */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Slide in animation */
@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-slide-in {
    animation: slideInRight 0.5s ease-out forwards;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Smooth transition for all elements */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Theme Styles */
body.dark-theme {
    background: var(--primary-gradient-dark);
    color: #fff;
}

body.light-theme {
    background: var(--primary-gradient-light);
    color: #333;
}

/* Enhanced Text Visibility */
.tech-card {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-value {
    font-weight: 700;
    font-size: 1.25rem;
}

.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Sharper colors for tech theme */
.text-blue-400 {
    color: #4da3ff !important;
}

.text-green-400 {
    color: #2ecc71 !important;
}

.text-red-400 {
    color: #ff5252 !important;
}

.text-yellow-400 {
    color: #ffca28 !important;
}

/* Enhanced contrast for dark theme */
body.dark-theme .bg-gray-800 {
    background-color: #1a1a2e !important;
}

body.dark-theme .bg-gray-900 {
    background-color: #16213e !important;
}

body.dark-theme .bg-gray-700 {
    background-color: #0f3460 !important;
}

/* Header Styling */
header {
    background: linear-gradient(90deg, #000000, #1a1a1a, #000000);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    height: 50px;
    max-width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Elements Styling */
header a.text-2xl {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transition: all 0.3s ease;
}

header a.text-2xl:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.8);
}

/* Live Time Display */
#liveTime {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Header Buttons */
header button {
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

header .bg-green-500 {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

header .bg-blue-500 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* User Dropdown */
header .group {
    position: relative;
}

header .group > a {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

header .group > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

header .group .absolute {
    min-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform-origin: top right;
    transition: all 0.3s ease;
}

header .group .absolute a {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

header .group .absolute a:hover {
    background-color: #f8f9fa;
    border-left: 3px solid #3498db;
    padding-left: 16px;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.row > * {
    padding-left: 10px;
    padding-right: 10px;
    flex: 1 1 auto;
}

.page-brand {
    display: flex;
    align-items: center;
}

.page-brand .link {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
}

.page-brand .brand-mini {
    display: none;
}

.flexbox {
    display: flex;
    align-items: center;
}

.navbar-toolbar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-toolbar li {
    margin-left: 20px;
}

.navbar-toolbar li a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.navbar-toolbar li a:hover {
    opacity: 0.8;
}

/* Sidebar Toggler */
#sidebarToggle {
    cursor: pointer;
    font-size: 24px;
    /*color: #fff;*/
    transition: transform 0.3s ease;
    z-index: 1001;
    position: fixed;
    left : 200px;
    top :10px;
}

#sidebarToggle:hover {
    transform: scale(1.1);
}


/* Content Wrapper */
.content-wrapper {
    margin-left: 260px;
    transition: all 0.3s ease;
    padding: 20px;
    overflow-x: hidden;
    min-height: calc(100vh - 50px);
    max-width: 100%;
    position: relative;
    background-color: #f8f9fa;
}

.content-wrapper.sidebar-open {
    margin-left: 250px;
}

/* Dark theme content wrapper */
body.dark-theme .content-wrapper {
    background-color: #121212;
    color: #f0f0f0;
}

/* Card Styling */
.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 20px;
    background-color: #ffffff;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Card hover effect with glow */
.card.glow-effect:hover {
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}

/* Card with reveal effect */
.card.reveal-effect {
    opacity: 0;
    transform: translateY(20px);
    animation: revealCard 0.5s forwards;
}

@keyframes revealCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered reveal for multiple cards */
.card-container .card.reveal-effect:nth-child(1) { animation-delay: 0.1s; }
.card-container .card.reveal-effect:nth-child(2) { animation-delay: 0.2s; }
.card-container .card.reveal-effect:nth-child(3) { animation-delay: 0.3s; }
.card-container .card.reveal-effect:nth-child(4) { animation-delay: 0.4s; }

.card-header {
    background: linear-gradient(90deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Card header shine effect */
.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: all 0.75s;
}

.card:hover .card-header::before {
    left: 125%;
}

.card-body {
    padding: 20px;
}

/* Dark theme card styling */
body.dark-theme .card {
    background-color: #1e1e2d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Card Header Styles */
.card-header {
    background: linear-gradient(135deg, #4a6fa5 0%, #28527a 100%);
    border-bottom: none;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
}

.card-header h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark-theme .card-header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    border-color: #3d3d4d;
}

body.dark-theme .card.glow-effect:hover {
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.6);
}

/* Table Styling */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Dark theme table styling */
body.dark-theme .table th {
    background-color: #2d2d3d;
    color: #e0e0e0;
    border-bottom: 2px solid #3d3d4d;
}

body.dark-theme .table td {
    border-bottom: 1px solid #3d3d4d;
}

body.dark-theme .table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Responsive Design */
@media (min-width: 768px) {
    .page-sidebar {
        left: 0;
    }
    .content-wrapper {
        margin-left: 250px;
    }
}

/* Sidebar Styling */

.page-sidebar.active {
    left: 0;
}
/* Sidebar */
#sidebar {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d); /* Modern dark gradient */
    width: 230px;
    height: 95%;
    position: fixed;
    top: 50px;
    left: 0;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.3);
}

#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

#sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Sidebar & Content Wrapper Closed */
#sidebar.active {
    left: -250px; /* Retains original positioning when sidebar is closed */
    transition: left 0.3s ease; /* Retains smooth transition for sliding effect */
}

.content-wrapper.sidebar-closed {
    margin-left: 10px; /* Retains original margin when sidebar is closed */
    transition: margin-left 0.3s ease; /* Retains smooth transition for content shift */
}

/* Sidebar Menu Styling */
#sidebar .side-menu {
    list-style: none;
    padding: 0;
    margin-top: 0;
    padding-left: 10px;
    padding-right: 10px;
    height: auto;
    background: transparent;
    position: relative;
}

/* Sidebar Menu Items */
#sidebar .side-menu li a {
    color: #e0e0e0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Segoe UI', 'Inter', sans-serif;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 0;
    position: relative;
    overflow: hidden;
}

/* Icon in Menu Items */
#sidebar .side-menu li a i {
    min-width: 20px;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

/* Hover Effect with Animation */
#sidebar .side-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

#sidebar .side-menu li a:hover i {
    color: #3498db;
    transform: scale(1.2);
}

/* Active Menu Item with Gradient */
#sidebar .side-menu li a.active {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1));
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #3498db;
}

#sidebar .side-menu li a.active i {
    color: #3498db;
}

/* Badge Styling */
#sidebar .side-menu li a .badge {
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: auto;
    transition: all 0.3s ease;
}

#sidebar .side-menu li a .badge-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

#sidebar .side-menu li a:hover .badge {
    transform: scale(1.1);
}

/* Heading Styling (For section titles) */
#sidebar .side-menu li.heading {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 15px 5px;
    letter-spacing: 1.5px;
    margin-top: 10px;
    position: relative;
}

/* Add decorative line to headings */
#sidebar .side-menu li.heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
}


/* Admin Block Styling */
.admin-block {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent);
    margin-bottom: 10px;
}

.admin-block img {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.admin-block img:hover {
    transform: scale(1.1);
    border-color: #3498db;
}

.admin-info {
    margin-left: 10px;
}

.admin-info .font-strong {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.admin-info small {
    opacity: 0.8;
    font-size: 12px;
}

/* Button Styling */
.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* 3D button effect */
.btn-3d {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-3d:active {
    transform: translateY(2px);
    box-shadow: 0 2px 3px rgba(50, 50, 93, 0.11), 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Glowing button effect */
.btn-glow {
    animation: glowing 1.5s infinite alternate;
}

@keyframes glowing {
    0% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); }
    100% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.9); }
}

/* Floating button */
.btn-float {
    animation: floating 3s ease infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: white;
}

/* Form Control Styling */
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #6e45e2;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(110, 69, 226, 0.25), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #a0aec0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.form-control:focus::placeholder {
    opacity: 0.4;
}

/* Floating label effect */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group.floating {
    margin-top: 1rem;
}

.form-group.floating label {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    color: #a0aec0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group.floating .form-control:focus ~ label,
.form-group.floating .form-control:not(:placeholder-shown) ~ label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.75rem;
    padding: 0 0.25rem;
    background-color: #fff;
    color: #6e45e2;
}

/* Custom checkbox and radio */
.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 2.5rem;
}

.custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    cursor: pointer;
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -2.5rem;
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    content: "";
    background-color: #fff;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.custom-checkbox .custom-control-label::before {
    border-radius: 0.25rem;
}

.custom-radio .custom-control-label::before {
    border-radius: 50%;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: #6e45e2;
    background-color: #6e45e2;
    box-shadow: 0 0 0 0.2rem rgba(110, 69, 226, 0.25);
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(110, 69, 226, 0.25);
}

.custom-control-input:active ~ .custom-control-label::before {
    color: #fff;
    background-color: #d8d0f0;
}

.custom-control-label::after {
    position: absolute;
    top: 0.25rem;
    left: -2.5rem;
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    content: "";
    background: no-repeat 50% / 50% 50%;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Dark theme form controls */
body.dark-theme .form-control {
    color: #cbd5e0;
    background-color: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-theme .form-control:focus {
    border-color: #4a367a;
    box-shadow: 0 0 0 0.2rem rgba(74, 54, 122, 0.25), 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .form-control::placeholder {
    color: #718096;
}

body.dark-theme .form-group.floating .form-control:focus ~ label,
body.dark-theme .form-group.floating .form-control:not(:placeholder-shown) ~ label {
    background-color: #2d3748;
    color: #a0aec0;
}

body.dark-theme .custom-control-label::before {
    background-color: #2d3748;
    border-color: #4a5568;
}

body.dark-theme .custom-control-input:checked ~ .custom-control-label::before {
    border-color: #4a367a;
    background-color: #4a367a;
}

/* Subscription Page Styles */
.card-header.bg-dark {
    background-color: #343a40 !important;
    color: #ffffff;
}

body.dark-theme .card-header.bg-dark {
    background: linear-gradient(135deg, #1a1a2e, #2d3748) !important;
    color: #ffffff;
    border-bottom: 1px solid #4a5568;
}

/* Enhanced Subscription Card Styles */
.card-header.bg-dark {
    background: linear-gradient(135deg, #2d3436, #343a40) !important;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-header .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.card-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-header h2 span {
    position: relative;
    display: inline-block;
}

.currency-symbol {
    font-size: 1.8rem;
    font-weight: 600;
    margin-right: 0.2rem;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.9);
}

.amount-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.currency-code {
    font-size: 1rem;
    font-weight: 500;
    margin-left: 0.3rem;
    opacity: 0.8;
    vertical-align: middle;
}

.validity-period {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

body.dark-theme .currency-symbol {
    color: #63b3ed;
}

body.dark-theme .amount-value {
    color: #f7fafc;
}

body.dark-theme .currency-code {
    color: #a0aec0;
}

body.dark-theme .validity-period {
    color: #63b3ed;
}

.card-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

body.dark-theme .card-header .card-title {
    color: #63b3ed;
}

body.dark-theme .card-header h2 {
    color: #f7fafc;
}

body.dark-theme .card-header p {
    color: #a0aec0;
}

body.dark-theme .card {
    background-color: #1e1e2d;
    border-color: #2d2d3d;
}

body.dark-theme .card-body {
    background-color: #1e1e2d;
    color: #f0f0f0;
}

body.dark-theme .card-footer {
    background-color: #1e1e2d;
    border-top-color: #2d2d3d;
}

body.dark-theme .list-group-item {
    background-color: #2a2a3a;
    border-color: #3d3d4d;
    color: #f0f0f0;
}

/* Enhanced Feature List Styles */
.feature-list {
    margin-bottom: 0;
}

.feature-list .list-group-item {
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-left: 0;
    border-right: 0;
}

.feature-list .list-group-item:first-child {
    border-top: 0;
}

.feature-list .list-group-item:last-child {
    border-bottom: 0;
}

.feature-list .list-group-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-value {
    font-weight: 700;
    color: #333;
}

body.dark-theme .feature-list .list-group-item:hover {
    background-color: rgba(66, 153, 225, 0.1);
}

body.dark-theme .feature-value {
    color: #63b3ed;
}

body.dark-theme .feature-text {
    color: #e2e8f0;
}

/* Purchase Button Styles */
.btn-purchase {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-purchase:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-purchase:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-purchase:hover:before {
    left: 100%;
}

.btn-purchase:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

body.dark-theme .btn-purchase {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

body.dark-theme .btn-purchase:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

/* Warning Message Styles */
.warning-message {
    display: flex;
    align-items: flex-start;
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.25rem;
}

.warning-icon {
    color: #dc3545;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.warning-message p {
    margin: 0;
    color: #dc3545;
    font-size: 0.9rem;
    line-height: 1.4;
}

body.dark-theme .warning-message {
    background-color: rgba(220, 53, 69, 0.15);
    border-left-color: #e74c3c;
}

body.dark-theme .warning-icon {
    color: #e74c3c;
}

body.dark-theme .warning-message p {
    color: #f8d7da;
}

body.dark-theme .text-start {
    color: #f0f0f0;
}

/* Payment Summary Styles */
.payment-summary {
    margin: 20px 0; 
    padding: 15px; 
    background: #ffffff; 
    border: 1px solid #e9ecef; 
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-header {
    display: flex; 
    align-items: center; 
    margin: 0 0 10px 0;
}

.summary-title {
    margin: 0 0 0 10px; 
    font-size: 16px; 
    font-weight: 600; 
    color: #333;
}

.summary-item {
    display: flex; 
    align-items: center; 
    margin: 5px 0;
}

.summary-icon {
    font-size: 14px; 
    width: 20px; 
    text-align: center;
}

.summary-text {
    margin: 0 0 0 10px; 
    font-size: 14px; 
    color: #666; 
    flex-grow: 1;
}

.summary-value {
    float: right; 
    color: #333; 
    font-weight: 500;
}

.summary-divider {
    margin: 10px 0; 
    border: 0; 
    border-top: 1px solid #e9ecef;
}

/* Custom Checkbox Styles */
.custom-checkbox-group {
    margin-bottom: 20px; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px;
}

.custom-checkbox {
    margin-top: 3px; 
    cursor: pointer; 
    width: 18px; 
    height: 18px; 
    flex-shrink: 0;
}

.custom-checkbox-label {
    font-size: 16px; 
    color: #444; 
    font-weight: 500; 
    cursor: pointer; 
    line-height: 1.5;
}

/* Active Plan Badge */
.active-plan-badge {
    position: absolute; 
    top: 10px; 
    left: 5%; 
    transform: translateX(-50%); 
    font-size: 12px; 
    padding: 5px 10px;
    z-index: 1;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body.dark-theme .active-plan-badge {
    background-color: #2ecc71 !important;
    color: #1a1a2e !important;
}

/* Dark Theme Payment Summary */
body.dark-theme .payment-summary {
    background-color: #2a2a3a !important;
    border-color: #3d3d4d !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

body.dark-theme .summary-title {
    color: #f0f0f0 !important;
}

body.dark-theme .summary-text {
    color: #d0d0d0 !important;
}

body.dark-theme .summary-value {
    color: #f0f0f0 !important;
}

body.dark-theme .summary-divider {
    border-top-color: #3d3d4d !important;
}

body.dark-theme .text-secondary {
    color: #a0aec0 !important;
}

body.dark-theme .text-warning {
    color: #ffc107 !important;
}

body.dark-theme .text-primary {
    color: #63b3ed !important;
}

body.dark-theme label {
    color: #f0f0f0 !important;
}

body.dark-theme .text-success {
    color: #48bb78 !important;
}

body.dark-theme .text-danger {
    color: #f56565 !important;
}

body.dark-theme .btn-outline-success {
    color: #48bb78;
    border-color: #48bb78;
}

body.dark-theme .btn-outline-success:hover {
    background-color: #48bb78;
    color: #1a1a2e;
}

.preloader-backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff
}

.preloader-backdrop .page-preloader {
    position: fixed;
    top: 40%;
    left: 50%;
    padding: 10px 45px 10px 10px;
    margin-left: -60px;
    z-index: 1005;
    font-family: Poppins;
    font-size: 16px
}

.preloader-backdrop .page-preloader::before {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border-top: 2px solid #34495f;
    border-right: 2px solid transparent;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-animation: loader-rotate .6s linear infinite;
    animation: loader-rotate .6s linear infinite
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    background-color: rgba(0,0,0,.5)!important;
    -webkit-transition: opacity .3s cubic-bezier(.4,0,.2,1);
    -o-transition: opacity .3s cubic-bezier(.4,0,.2,1);
    transition: opacity .3s cubic-bezier(.4,0,.2,1);
    z-index: 1004;
    pointer-events: none
}

.shined {
    z-index: 1005!important
}


/* Theme Toggle Styles */
.theme-toggle-container {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1500;
}

.theme-toggle-btn {
    position: relative;
    padding: 2px;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    border: 2px solid #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
    border-radius: 9999px;
    width: 3.5rem;
    height: 1.75rem;
    transition: all 0.5s;
}

#themeToggleCircle {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3), inset 0 0 2px rgba(255, 255, 255, 0.8);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    transform: translateX(0);
    transition: transform 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Theme Styles */
body.dark-theme {
    background: linear-gradient(to bottom, #121212, #1e1e2d);
    color: #ffffff;
}

body.dark-theme .theme-toggle-btn {
    background: linear-gradient(to right, #16222a, #3a6073);
    border-color: #00c6ff;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.6);
}

body.dark-theme .theme-toggle-btn #themeToggleCircle {
    transform: translateX(24px);
    background: linear-gradient(145deg, #f9d423, #ff4e50);
    box-shadow: 0 0 8px rgba(255, 78, 80, 0.5), inset 0 0 2px rgba(255, 255, 255, 0.8);
}

/* Ensure theme toggle is always visible and works on all pages */
.theme-toggle-container {
    position: fixed !important;
    right: 20px !important;
    top: 10px !important;
    z-index: 9999 !important;
}

/* Enhanced Dark Theme Styles for All Elements */
body.dark-theme .page-sidebar {
    background-color: #1e1e2d;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

body.dark-theme .side-menu a {
    color: #e0e0e0;
}

/* Ensure dark theme applies to all pages and components */
body.dark-theme header,
body.dark-theme nav,
body.dark-theme .navbar,
body.dark-theme .page-wrapper {
    background: linear-gradient(90deg, #000000, #1a1a1a, #000000);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .content-wrapper {
    background: linear-gradient(to bottom, #121212, #1e1e2d);
    color: #ffffff;
}

body.dark-theme .card {
    background-color: #1e1e2d;
    border-color: #2d2d3d;
}

body.dark-theme .table th,
body.dark-theme .table td {
    border-color: #2d2d3d;
    color: #e0e0e0;
}
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Improved Text Visibility in Dark Mode */
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, 
body.dark-theme h4, body.dark-theme h5, body.dark-theme h6 {
    color: #ffffff;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

body.dark-theme p, body.dark-theme span, body.dark-theme div {
    color: #f0f0f0;
}

body.dark-theme .text-gray-400, body.dark-theme .text-gray-500, 
body.dark-theme .text-gray-600, body.dark-theme .text-gray-700 {
    color: #d0d0d0 !important;
}

body.dark-theme table {
    color: #ffffff;
}

body.dark-theme .bg-white {
    background-color: #1e1e2d !important;
}

body.dark-theme .border-gray-200 {
    border-color: #2d2d3d !important;
}

/* Banner Styles */
.banner {
    position: fixed;
    top: 40px;
    left: 41%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 15px 30px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { top: -50px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

.slideUp {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from { top: 20px; opacity: 1; }
    to { top: -50px; opacity: 0; }
}

/* Loading Indicator */
.loading-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(1px);
    transition: all 0.3s ease;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.loading-spinner:before,
.loading-spinner:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation-duration: 1.8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

.loading-spinner:before {
    width: 100%;
    height: 100%;
    background-color: rgba(52, 152, 219, 0.7);
    animation-name: pulse-shadow;
    z-index: -1;
}

.loading-spinner:after {
    width: 80%;
    height: 80%;
    background-color: rgba(255, 255, 255, 0.9);
    top: 10%;
    left: 10%;
    animation-name: pulse-shadow-inner;
}

@keyframes pulse-shadow {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.3;
    }
    50% {
        transform: scale(1);
        opacity: 0.7;
    }
}

@keyframes pulse-shadow-inner {
    0%, 100% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Alternative loading spinner styles */
.loading-spinner.dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: auto;
    height: auto;
}

.loading-spinner.dots:before,
.loading-spinner.dots:after {
    display: none;
}

.loading-spinner.dots span {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-spinner.dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-spinner.dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

body.dark-theme .loading-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-theme .loading-spinner:before {
    background-color: rgba(74, 54, 122, 0.7);
}

body.dark-theme .loading-spinner:after {
    background-color: rgba(45, 55, 72, 0.9);
}

body.dark-theme .loading-spinner.dots span {
    background-color: #4a367a;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    /* Sidebar Adjustments */
    #sidebar {
        width: 80%; /* Keep some space for better UX */
        left: -80%;
        height: 100vh;
        position: fixed;
        background-color: rgba(0, 0, 0, 0.9); /* Slight transparency */
        transition: left 0.3s ease-in-out;
    }

    #sidebar.active {
        left: 0;
    }

    /* Navbar Adjustments */
    header {
        height: 70px;
        padding: 10px 15px;
    }
    .navbar-toolbar {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .navbar-search .form-control {
        width: 150px;
    }

    .navbar-search .form-control:focus {
        width: 180px;
    }

    /* Content Wrapper */
    .content-wrapper {
        margin-left: 0; /* Full width when sidebar is hidden */
        padding: 15px;
    }

    .content-wrapper.sidebar-open {
        margin-left: 0;
    }

    /* Sidebar Toggler */
    #sidebarToggle {
        position: fixed;
        left: 15px;
        top: 15px;
        font-size: 28px;
        z-index: 5000;
    }

    /* Theme Panel Hide */
    .theme-config {
        display: none;
    }
    
    .navbar-search {
        display: none;
    }
    
    /* Table Responsive */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    #example-table {
        width: 100%;
        min-width: 600px; /* Adjust this value as needed */
    }

    /* Theme Toggle Adjustments for Mobile */
    .theme-toggle-container {
        right: 15px;
        top: 15px;
    }
    
    #themeLabel {
        display: none;
    }
}

/* Card Styles */
.tech-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
}

/* Transaction Styles */
:root {
    --success-color: #28a745;
    --pending-color: #ffc107;
    --failure-color: #dc3545;
    --primary-color: #007bff;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --hover-shadow: 0 10px 30px rgba(0,0,0,0.15);
    --transition-speed: 0.3s;
}

.summary-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5px;
    border-radius: 15px;
}

.summary-section .card {
    transition: all var(--transition-speed) ease;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: var(--card-shadow);
}

.summary-section .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.summary-section .card-header {
    border-bottom: none;
    font-weight: 600;
    padding: 15px 20px;
}

.stat-item {
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid transparent;
}

.stat-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-item.success {
    border-left-color: var(--success-color);
}

.stat-item.pending {
    border-left-color: var(--pending-color);
}

.stat-item.failure {
    border-left-color: var(--failure-color);
}

.stat-item.total {
    border-left-color: var(--primary-color);
}

.stat-icon {
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
}

/* News Ticker Styles */
.news-ticker-container {
    background: linear-gradient(90deg, #2e1700, #000000);
    margin: 1rem 0;
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.news-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 25s linear infinite;
    font-size: 1rem;
    color: #ffd700;
    font-weight: 600;
}

.news-ticker:hover {
    animation-play-state: paused;
}

.news-item {
    margin-right: 80px;
    transition: var(--transition-normal);
    position: relative;
    padding-left: 20px;
}

.news-item:before {
    content: '📢';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.news-item:hover {
    color: #ffffff;
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

body.dark-theme .tech-card {
    background: #2a2a3a;
    box-shadow: var(--card-shadow-dark);
}

body.light-theme .tech-card {
    background: #fff;
    box-shadow: var(--card-shadow-light);
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.success-gradient {
    background: var(--success-gradient);
}

.warning-gradient {
    background: var(--warning-gradient);
}

.danger-gradient {
    background: var(--danger-gradient);
}

.info-gradient {
    background: var(--info-gradient);
}

/* Button Styles */
.tech-btn {
    background: linear-gradient(45deg, #ff6b6b, #cc00ff);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition-normal);
    text-align: center;
    display: inline-block;
}

.tech-btn:hover {
    background: linear-gradient(45deg, #ff8585, #ffd633);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* WhatsApp Banner Styles */
.wa-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal);
}

/* Modal Styles */
.modal {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Ibox Styles */
.ibox-head {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.ibox-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

/* Ibox Tools */
.ibox-tools {
    display: flex;
    flex-direction: column; /* Stack forms vertically by default */
    gap: 1rem;
}

/* Responsive Design for Ibox */
@media (min-width: 768px) {
    .ibox-tools {
        flex-direction: row; /* Side-by-side on desktop */
        justify-content: space-between;
        align-items: center;
    }

    .form-filter,
    .form-export {
        flex-wrap: nowrap;
    }

    .form-group {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .form-group input[type="date"] {
        width: auto; /* Allow natural width on desktop */
    }
}

@media (max-width: 480px) {
    .form-group input[type="date"] {
        max-width: 100%; /* Full width on small screens */
    }

    .export-buttons {
        flex-direction: column; /* Stack buttons vertically on very small screens */
    }

    .btn {
        width: 100%; /* Full-width buttons on mobile */
    }
}

.modal-content {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-content.active {
    transform: scale(1);
}

body.dark-theme .modal-content {
    background: #2a2a3a;
}

body.light-theme .modal-content {
    background: #fff;
}

/* Alert Styles */
body.light-theme .alert {
    background: #e6f3ff;
    color: #333;
    border-left: 4px solid #3498db;
}

body.dark-theme .alert {
    background: #2a2a3a;
    color: #fff;
    border-left: 4px solid #3498db;
}

/* Receipt Styles */
.receipt { 
    max-width: 500px; 
    margin: 0 auto; 
}

.receipt h2 { 
    text-align: center; 
    color: #333; 
}

.receipt .details { 
    border-top: 2px solid #ccc; 
    border-bottom: 2px solid #ccc; 
    padding: 15px 0; 
    margin-bottom: 15px; 
}

.receipt .details div { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 8px; 
}

.receipt .details span:first-child { 
    font-weight: bold; 
}

.receipt .footer { 
    text-align: center; 
    font-size: 12px; 
    color: #666; 
}

/* Transaction Modal Styles */
#transactionModal {
    z-index: 1000;
}

#transactionModal .bg-white {
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}

#transactionModal .details div {
    display: flex;
    justify-content: space-between;
}

#transactionModal .details span:first-child {
    font-weight: 600;
    color: #374151;
}

#transactionModal .details span:last-child {
    color: #4b5563;
}

.wa-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.WhatsApp-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-normal);
}

.WhatsApp-banner:hover {
    transform: scale(1.05);
}

/* Chart Styles */
.chart-container {
    position: relative;
    margin: 1rem 0;
    transition: var(--transition-normal);
    border-radius: 12px;
    overflow: hidden;
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Chart tab button styles */
.chart-tab-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.chart-tab-btn.active {
    background-color: #3182ce;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.chart-tab-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(49, 130, 206, 0.3);
    transition: all 0.3s ease;
    z-index: -1;
}

.chart-tab-btn:hover:after {
    height: 100%;
}

.chart-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Ensure chart text is readable */
canvas {
    max-width: 100%;
    height: auto !important;
    max-height: 100%;
    transition: all 0.5s ease;
    display: block;
}

/* Transaction Chart Container */
.chart-container {
    position: relative;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    max-height: 400px;
}

.chart-container:hover {
    box-shadow: var(--hover-shadow);
}

/* Animation for chart view transition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#chart-view .chart-container {
    animation: fadeIn 0.6s ease forwards;
}

#chart-view .chart-container:nth-child(2) {
    animation-delay: 0.2s;
}

/* Responsive adjustments for transactions */
@media (max-width: 768px) {
    .d-flex.flex-wrap {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .chart-container {
        padding: 15px 10px;
    }
}
