:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f6fa;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
}

body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-user {
    color: var(--dark-color);
}

.admin-user a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
}

.admin-user a:hover {
    background: var(--secondary-color);
}

.requests-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-collapse: collapse;
    overflow: hidden;
}

.requests-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
}

.requests-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.requests-table tr:hover {
    background-color: var(--secondary-color);
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-new { background-color: #007bff; color: white; }
.status-in_progress { background-color: #ffc107; color: #000; }
.status-completed { background-color: #28a745; color: white; }
.status-cancelled { background-color: #dc3545; color: white; }

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view {
    background: var(--primary-color);
    color: white;
}

.btn-update {
    background: var(--success-color);
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.customer-details .info-group {
    margin-bottom: 1rem;
}

.customer-details .info-group label {
    font-weight: bold;
    color: #666;
    margin-bottom: 0.2rem;
}

.customer-details .client-message {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid #ddd;
}

.form-select {
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    cursor: pointer;
}

.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Modal styles */
.modal {
    background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    margin-top: 100px;
}

.modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    border: none;
}

.modal-header {
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #eee;
}

.form-select-lg {
    height: 46px;
    font-size: 1.1rem;
}

.modal .btn {
    padding: 8px 20px;
    font-weight: 500;
}

.modal-footer {
    border-top: 2px solid #eee;
    padding: 1rem;
}

.form-select {
    display: block !important;
    width: 100% !important;
    padding: 10px !important;
    font-size: 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    margin-bottom: 10px !important;
}

@media (max-width: 768px) {
    .requests-table {
        display: block;
        overflow-x: auto;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
