:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --dark-color: #1d1b31;
    --light-color: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f6f9ff;
    min-height: 100vh;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 10px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 10px;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 10px;
}

/* Sidebar Styles - Updated */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    background: linear-gradient(180deg, var(--dark-color) 0%, #2c2c44 100%);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 14px;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.close {
    width: 78px;
    background: linear-gradient(180deg, var(--dark-color) 0%, #2c2c44 100%);
}

.sidebar .logo-details {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    position: relative;
}

.sidebar .logo-details::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.sidebar .logo-details .logo-img {
    max-width: 160px;
    height: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
}

.sidebar.close .logo-details .logo-img {
    max-width: 45px;
}

/* Navigation Links - Updated */
.nav-links {
    list-style: none;
    margin-top: 30px;
    padding: 0 10px;
}

.nav-links li {
    margin: 6px 0;
    position: relative;
}

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--light-color);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-links li a:hover::before,
.nav-links li.active a::before {
    opacity: 0.1;
}

.nav-links li a i {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
}

/* Dashboard Icon */
.nav-links li:nth-child(1) a i {
    color: #4361ee;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), transparent);
    border-radius: 12px;
}

/* Tickets Icon */
.nav-links li:nth-child(2) a i {
    color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), transparent);
    border-radius: 12px;
}

/* Inventory Icon */
.nav-links li:nth-child(3) a i {
    color: #2ed573;
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.1), transparent);
    border-radius: 12px;
}

/* Users Icon */
.nav-links li:nth-child(4) a i {
    color: #ffa502;
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.1), transparent);
    border-radius: 12px;
}

/* Settings Icon */
.nav-links li:nth-child(5) a i {
    color: #5f27cd;
    background: linear-gradient(135deg, rgba(95, 39, 205, 0.1), transparent);
    border-radius: 12px;
}

.nav-links li a:hover i {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.nav-links li.active a i {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.nav-links li a .link_name {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 1;
}

.sidebar.close .nav-links li a .link_name {
    opacity: 0;
}

/* Header Right - Updated */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(67, 97, 238, 0.1);
}

.theme-toggle i {
    font-size: 22px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.2));
}

.theme-toggle:hover i {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 6px rgba(67, 97, 238, 0.3));
}

.notification-badge {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-badge:hover {
    background: rgba(67, 97, 238, 0.1);
}

.notification-badge i {
    font-size: 22px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.2));
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--warning-color);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(247, 37, 133, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(247, 37, 133, 0);
    }
}

.notification-badge:hover i {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 6px rgba(67, 97, 238, 0.3));
}

.user-profile {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile i {
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.user-profile:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Search Bar */
.search-bar {
    position: relative;
    max-width: 400px;
    width: 100%;
    min-width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border-radius: 25px;
    border: 2px solid rgba(67, 97, 238, 0.1);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.1);
}

.search-bar i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.search-bar input:focus + i {
    transform: translateY(-50%) scale(1.1);
}

/* Main Content */
.main-content {
    position: relative;
    min-height: 100vh;
    left: 260px;
    width: calc(100% - 260px);
    transition: all 0.5s ease;
    padding: 20px;
}

.sidebar.close ~ .main-content {
    left: 78px;
    width: calc(100% - 78px);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-card i {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.2));
    transition: all 0.3s ease;
}

.dashboard-card:hover i {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 4px 6px rgba(67, 97, 238, 0.3));
}

.dashboard-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #666;
}

/* Counter Value */
.counter-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Charts Container */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    height: 100%;
    min-height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table-container h3 {
    margin-bottom: 20px;
    color: #333;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table thead th {
    background: rgba(67, 97, 238, 0.05);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid rgba(67, 97, 238, 0.1);
}

.data-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #666;
}

.data-table tbody tr:hover {
    background: rgba(67, 97, 238, 0.02);
}

/* Status Tags */
.status-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-open {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.status-pending {
    background: rgba(247, 37, 133, 0.1);
    color: var(--warning-color);
}

.status-resolved {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-4, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
    }
    
    .sidebar.close {
        transform: translateX(0);
        width: 260px;
    }
    
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: var(--primary-color);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        color: white;
        border: none;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .sidebar.close .sidebar-toggle {
        left: 220px;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        left: 0 !important;
        padding: 15px;
        padding-top: 70px;
    }
    
    .row {
        margin: -8px;
    }
    
    .col-md-3, .col-md-4, .col-md-8 {
        padding: 8px;
    }
    
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .dashboard-card {
        margin-bottom: 0;
    }
    
    .header {
        margin-bottom: 15px;
        padding: 12px 15px;
    }
    
    .search-bar {
        min-width: auto;
        width: 100%;
    }
    
    .nav-links {
        margin-top: 20px;
    }
    
    .nav-links li a {
        padding: 12px 15px;
    }
    
    .nav-links li a i {
        min-width: 45px;
    }
    
    .logo-details {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
        padding-top: 70px;
    }
    
    .row {
        margin: -5px;
    }
    
    .col-md-3, .col-md-4, .col-md-8 {
        padding: 5px;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .counter-value {
        font-size: 2rem;
    }
    
    .header {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .theme-toggle,
    .notification-badge,
    .user-profile {
        width: 35px;
        height: 35px;
    }
    
    .theme-toggle i,
    .notification-badge i {
        font-size: 18px;
    }
    
    .user-profile i {
        font-size: 28px;
    }
    
    .search-bar input {
        padding: 10px 40px 10px 15px;
        font-size: 13px;
    }
}

/* Menu Collapsed State */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .logo-details .logo-img {
    width: 35px;
}

.sidebar.collapsed .nav-links li a .link_name {
    display: none;
}

.sidebar.collapsed .nav-links li a {
    padding: 12px;
    justify-content: center;
}

.sidebar.collapsed .nav-links li a i {
    margin: 0;
    font-size: 24px;
}

.sidebar.collapsed .nav-links li.active a::before {
    display: none;
}

/* Tooltip for Collapsed Menu */
.sidebar.collapsed .nav-links li a {
    position: relative;
}

.sidebar.collapsed .nav-links li a::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-left: 10px;
}

.sidebar.collapsed .nav-links li a:hover::after {
    opacity: 1;
}

/* Animation for Menu Toggle */
.sidebar {
    transition: width 0.3s ease;
}

.nav-links li a {
    transition: all 0.3s ease;
}

.sidebar-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: -40px;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle i {
    font-size: 20px;
}

.sidebar-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.sidebar.close .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
} 