:root {
    --sidebar-width: 250px;
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --light-bg: #f8f9fa;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
}

/* General Styles */
body {
    min-height: 100vh;
    background-color: var(--light-bg);
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1rem;
    margin: 0.2rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    color: white;
    background: var(--secondary-color);
}

.sidebar .nav-link.active {
    background: var(--accent-color);
    color: white;
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
}

.card-stats {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.card-stats-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.card-stats-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--accent-color);
    border: none;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    border: none;
}

.btn-warning {
    background-color: var(--warning-color);
    border: none;
}

.btn-danger {
    background-color: var(--danger-color);
    border: none;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--light-bg);
    border-bottom: 2px solid var(--gray-300);
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: var(--gray-100);
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    padding: 0.6rem 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 1px solid var(--gray-300);
}

/* Navbar Styles */
.top-navbar {
    margin-left: var(--sidebar-width);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 30px;
}

/* List Page Styles */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.list-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.list-actions {
    display: flex;
    gap: 1rem;
}

/* Dashboard Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-card-label {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Status Indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-active {
    background-color: var(--success-color);
}

.status-pending {
    background-color: var(--warning-color);
}

.status-inactive {
    background-color: var(--danger-color);
}

/* Sidebar Overlay (for mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive Styles - Tablets */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .top-navbar {
        margin-left: 0;
        padding: 0.75rem 1rem;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Styles - Mobile */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .top-navbar {
        padding: 0.5rem 0.75rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .list-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .list-title {
        font-size: 1.35rem;
    }

    .list-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Table mobile styles */
    .table thead th {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .table tbody td {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Hide less important columns on mobile */
    .table .d-mobile-none {
        display: none !important;
    }

    /* Card spacing */
    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Profile page mobile */
    .profile-image img,
    .profile-image > div {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.75rem !important;
    }

    .profile-image {
        margin-right: 1rem !important;
    }

    /* Welcome banner mobile */
    .welcome-banner {
        padding: 1.5rem 0;
    }

    .welcome-banner h1 {
        font-size: 1.5rem;
    }

    .welcome-banner p {
        font-size: 1rem;
    }

    /* Buttons - better touch targets */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-sm {
        min-height: 38px;
        padding: 0.4rem 0.6rem;
    }

    /* Badge mobile */
    .badge {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }

    /* Form mobile */
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Responsive Styles - Small phones */
@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.85rem;
    }

    .stat-card-value {
        font-size: 1.25rem;
    }

    .list-title {
        font-size: 1.2rem;
    }

    /* Profile adjustments for small phones */
    .profile-image img,
    .profile-image > div {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.3rem !important;
    }

    h2 {
        font-size: 1.25rem;
    }
}

/* Animation Styles */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 