/* Admin Login Styles */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.login-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
}

.login-form {
    margin-bottom: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.login-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    color: white;
    margin-left: 2rem;
    max-width: 350px;
}

.login-info h3 {
    margin-bottom: 1rem;
}

.login-info p {
    margin-bottom: 0.5rem;
}

.text-warning {
    color: #fbbf24;
    font-weight: 600;
    margin-top: 1rem;
}

/* Admin Dashboard Layout */
.admin-body {
    background: var(--bg-light);
    margin: 0;
    padding: 0;
}

.admin-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-logo img {
    height: 40px;
    width: auto;
}

.admin-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user span {
    color: var(--text-primary);
    font-weight: 600;
}

.admin-container {
    display: flex;
    min-height: calc(100vh - 72px);
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 2rem 0;
}

.admin-nav {
    display: flex;
    flex-direction: column;
}

.admin-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.admin-nav .nav-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.admin-nav .nav-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.admin-nav .nav-item i {
    width: 20px;
}

/* Main Content */
.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.public-page-note {
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(37, 99, 235, 0.08);
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
    border-radius: 0.5rem;
}

/* Dashboard Stats */
.dashboard-stats {
    margin-bottom: 3rem;
}

.dashboard-stats .stat-card {
    background: var(--bg-white);
    color: var(--text-primary);
}

.dashboard-stats .stat-card i {
    color: var(--primary-color);
}

/* Quick Actions */
.quick-actions {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.quick-actions h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.quick-actions button {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Filters Panel */
.filters-panel {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
}

/* Reports Container */
.reports-container {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.report-count {
    font-weight: 600;
    color: var(--text-secondary);
}

.table-responsive {
    overflow-x: auto;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
}

.reports-table thead {
    background: var(--bg-light);
}

.reports-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.reports-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.reports-table tbody tr {
    transition: background 0.2s;
}

.reports-table tbody tr:hover {
    background: var(--bg-light);
}

.report-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.report-type-complaint {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.report-type-feedback {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.report-type-improvement {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.report-type-appreciation {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.report-type-inquiry {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-submitted {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-under-review {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-in-progress {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.status-resolved {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-closed {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 0.75rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.detail-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detail-description {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.attachment-item:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.attachment-item.attachment-image:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.attachment-item.attachment-image .attachment-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
}

.attachment-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.375rem;
    box-shadow: var(--shadow-sm);
}

.attachment-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.25rem;
}

.attachment-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.attachment-item .btn {
    flex-shrink: 0;
}

.no-attachments {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 200px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .admin-nav .nav-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    
    .admin-nav .nav-item.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
    
    .filters-panel {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .login-info {
        display: none;
    }
}
