/* Admin Dashboard Styles */
.admin-container {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.admin-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

    .admin-title i {
        color: #6f42c1;
        margin-right: 10px;
    }

.admin-subtitle {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 1.1rem;
}

/* Statistics Cards */
.stats-row {
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid #6f42c1;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-right: 20px;
}

    .stat-icon.total-sections {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .stat-icon.menu-sections {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    }

    .stat-icon.home-sections {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    }

    .stat-icon.footer-sections {
        background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    }

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.stat-info p {
    margin: 5px 0 0 0;
    color: #666;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

    .quick-actions-card h3 {
        margin-bottom: 25px;
        color: #333;
        font-weight: 600;
    }

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    display: flex;
    align-items: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .action-card:hover {
        background: white;
        border-color: #6f42c1;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(111, 66, 193, 0.15);
        color: inherit;
        text-decoration: none;
    }

.action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-right: 15px;
}

.action-text h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.action-text p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Tables */
.table-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sections-table {
    margin: 0;
}

    .sections-table th {
        background: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
        font-weight: 600;
        color: #333;
        padding: 15px;
    }

    .sections-table td {
        padding: 15px;
        vertical-align: middle;
    }

.section-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-badge {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.index-badge {
    background: #6f42c1;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.view-type-badge {
    background: #17a2b8;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.location-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.contents-count {
    font-weight: 600;
    color: #6f42c1;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

    .action-buttons .btn {
        padding: 6px 10px;
        border-radius: 6px;
    }

/* Forms */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

    .form-card .card-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 20px 30px;
        border-bottom: none;
    }

        .form-card .card-header h3 {
            margin: 0;
            font-size: 1.3rem;
            font-weight: 600;
        }

    .form-card .card-body {
        padding: 30px;
    }

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: #6f42c1;
        box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
    }

.form-check-input:checked {
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 20px 0;
}

/* Buttons */
.btn-purple {
    background: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

    .btn-purple:hover {
        background: #5a379a;
        border-color: #5a379a;
        color: white;
    }

.btn-purple-glow {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

    .btn-purple-glow:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
        color: white;
    }

.btn-outline-purple {
    border-color: #6f42c1;
    color: #6f42c1;
}

    .btn-outline-purple:hover {
        background: #6f42c1;
        color: white;
    }

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.pagination {
    margin: 0;
}

.page-link {
    color: #6f42c1;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
}

.page-item.active .page-link {
    background: #6f42c1;
    border-color: #6f42c1;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 30px;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    margin-bottom: 30px;
}

/* Recent Sections */
.recent-sections-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

    .recent-sections-card .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 25px 30px;
        border-bottom: 1px solid #e9ecef;
    }

        .recent-sections-card .card-header h3 {
            margin: 0;
            color: #333;
        }

.recent-sections-list {
    padding: 20px 30px;
}

.recent-section-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f8f9fa;
}

    .recent-section-item:last-child {
        border-bottom: none;
    }

.section-info h5 {
    margin: 0 0 8px 0;
    color: #333;
}

.section-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 5px;
}

    .section-badge.index {
        background: #6f42c1;
        color: white;
    }

    .section-badge.menu {
        background: #007bff;
        color: white;
    }

    .section-badge.home {
        background: #28a745;
        color: white;
    }

    .section-badge.footer {
        background: #17a2b8;
        color: white;
    }

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-title {
        font-size: 1.8rem;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        flex-direction: column;
        text-align: center;
    }

    .action-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .pagination-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .recent-section-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-actions {
        align-self: flex-end;
    }
}
