/* Dashboard Styles */
:root {
    --primary-color: #1a237e;
    --secondary-color: #4a148c;
    --accent-color: #ff6f00;
    --text-color: #333;
    --light-text: #f5f5f5;
    --background-color: #f5f5f5;
    --sidebar-width: 250px;
    --header-height: 60px;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: white;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.logo-container {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container h1 {
    font-size: 1.2rem;
    margin-top: 10px;
}

.logo-container img {
    width: 70px;
    height: auto;
}

.nav-menu {
    padding: 20px 0;
}

.nav-title {
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* Header Styles */
.header {
    height: var(--header-height);
    background-color: white;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}

.header-actions button {
    background: none;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.header-actions button:hover {
    background-color: var(--background-color);
}

/* Content Area Styles */
.content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.dashboard-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Dashboard Stats */
.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    display: flex;
    align-items: center;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 35, 126, 0.1);
    border-radius: 50%;
}

.stat-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stat-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Dashboard Activities */
.dashboard-activities {
    margin-top: 15px;
}

.dashboard-activity {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.dashboard-activity:last-child {
    border-bottom: none;
}

.activity-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    margin-right: 15px;
}

.activity-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.activity-date .day {
    font-size: 1.4rem;
    font-weight: bold;
}

.activity-details h4 {
    margin-bottom: 5px;
}

.activity-details p {
    color: #666;
    font-size: 0.9rem;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.card-title .btn-small {
    font-size: 0.8rem;
    padding: 5px 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-col {
    flex: 1;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-save {
    background-color: var(--accent-color);
}

.btn-save:hover {
    background-color: #e65100;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

table tr:hover {
    background-color: #f5f5f5;
}

.action-cell {
    width: 120px;
    text-align: center;
}

.action-cell button {
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    font-size: 1rem;
}

.edit-btn {
    color: #ffc107;
}

.delete-btn {
    color: #dc3545;
}

/* Slider Item Styles */
.slider-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slider-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.slider-item:last-child {
    border-bottom: none;
}

.slider-preview {
    flex: 1;
    min-width: 300px;
}

.slider-image {
    height: 200px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    text-align: center;
}

.slider-content h3 {
    margin-bottom: 10px;
}

.slider-form {
    flex: 2;
    min-width: 300px;
}

.slider-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--box-shadow);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .toggle-sidebar {
        display: block;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
    }
    
    .stat-card {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .card-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .activity-date {
        width: 50px;
        height: 50px;
    }
    
    .dashboard-activity {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .activity-date {
        margin-bottom: 10px;
    }
}