/* Admin Layout Styles */
:root {
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    --primary-color: #4a90e2;
    --secondary-color: #f5f6fa;
    --text-color: #2c3e50;
    --border-color: #e1e1e1;
}

/* Base Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--secondary-color);
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header .logo {
    height: 40px;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-header .logo {
    transform: scale(0.8);
}

.sidebar-menu {
    padding: 20px 0;
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover {
    background-color: var(--secondary-color);
}

.sidebar-menu li a.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-menu li a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.sidebar.collapsed .sidebar-menu li a span {
    display: none;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
    padding: 20px;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-radius: 8px;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: var(--text-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
}

.user-role {
    font-size: 12px;
    color: #666;
}

/* Toggle Button */
.toggle-sidebar {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.expanded {
        margin-left: 0;
    }

    .header {
        padding: 10px;
    }

    .user-info {
        display: none;
    }

    .toggle-sidebar {
        display: block;
    }
}

/* Content Section Styles */
.section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: #e1e1e1;
    color: var(--text-color);
}

.btn:hover {
    opacity: 0.9;
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--nys-white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-icon {
    background-color: var(--nys-green);
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
}

.card-content {
    font-size: 26px;
    font-weight: 600;
    color: var(--nys-black);
    margin-bottom: 5px;
}

.card-footer {
    font-size: 13px;
    color: var(--nys-gray);
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--nys-light-gray);
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-item.active {
    border-bottom-color: var(--nys-green);
    color: var(--nys-green);
    font-weight: 500;
}

/* Status badges */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: #dff2bf;
    color: #4F8A10;
}

.badge-pending {
    background-color: #feefb3;
    color: #9F6000;
}

.badge-danger {
    background-color: #ffbaba;
    color: #D8000C;
}

/* Views Content */
.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

/* Mobile Responsiveness */
@media screen and (max-width: 991px) {
    .sidebar {
        width: 70px;
        transform: translateX(0);
    }
    
    .sidebar.expanded {
        width: 260px;
    }
    
    .sidebar-header {
        justify-content: center;
    }
    
    .sidebar-menu a span,
    .logo-text {
        display: none;
    }
    
    .sidebar.expanded .sidebar-menu a span,
    .sidebar.expanded .logo-text {
        display: inline;
    }
    
    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px); /* Update width for smaller sidebar */
    }
    
    .chat-container,
    .profile-container {
        flex-direction: column;
    }
    
    .chat-sidebar,
    .profile-sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .toggle-sidebar {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-profile {
        width: 100%;
        justify-content: flex-end;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .main-content {
        padding: 15px 10px;
    }
    
    .timer-display {
        font-size: 36px;
    }
    
    .timer-controls {
        flex-direction: column;
        gap: 10px;
    }
} 