/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-blue: #1a73e8;
    --dark-blue: #0d47a1;
    --light-blue: #4285f4;
    --accent-blue: #64b5f6;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --card-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100vw;
    overflow: hidden;
}

/* ===== HEADER ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
    background: linear-gradient(to right, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
}

.logo i {
    font-size: 28px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    opacity: 0.8;
}

.logout-btn {
    color: var(--white);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.logout-btn:hover {
    opacity: 0.8;
}

/* ===== CONTENT AREA ===== */
.dashboard-content {
    padding: 20px;
    flex: 1;
    max-width: 100%;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    color: var(--dark-blue);
    font-size: 24px;
    margin-bottom: 5px;
}

.page-header p {
    color: var(--dark-gray);
    font-size: 16px;
}

.card {
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    background: rgba(26, 115, 232, 0.05);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.card-header h2 {
    font-size: 18px;
    color: var(--dark-blue);
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary:hover {
    background: var(--dark-blue);
}

.table-container {
    overflow-x: auto;
    padding: 15px;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th {
    background: rgba(26, 115, 232, 0.05);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 14px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--dark-gray);
    font-size: 14px;
}

tr:hover {
    background: rgba(26, 115, 232, 0.03);
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-verified {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.status-unverified {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.status-banned {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.view {
    color: var(--primary-blue);
}

.action-btn.view:hover {
    background: rgba(26, 115, 232, 0.1);
}

.action-btn.ban {
    color: var(--error);
}

.action-btn.ban:hover {
    background: rgba(244, 67, 54, 0.1);
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 15px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--card-radius);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    font-weight: 500;
    font-size: 20px;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 20px;
}

.user-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-card {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 15px;
}

.detail-card h4 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card h4 i {
    font-size: 18px;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.detail-label {
    width: 150px;
    font-weight: 500;
    color: var(--dark-blue);
    font-size: 14px;
}

.detail-value {
    flex: 1;
    font-size: 14px;
    word-break: break-word;
}

.action-section {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
}

.action-section h4 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-section h4 i {
    font-size: 18px;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.action-card {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.action-card h5 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-card i {
    font-size: 18px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-blue);
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.btn-action {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-action:hover {
    background: var(--dark-blue);
}

.btn-reset {
    background: var(--warning);
}

.btn-reset:hover {
    background: #e68a00;
}

.btn-ban {
    background: var(--error);
}

.btn-ban:hover {
    background: #d32f2f;
}

.form-check {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.form-check input {
    margin: 0;
}

.form-check label {
    font-size: 14px;
    color: var(--dark-gray);
}

.modal-footer {
    padding: 15px 20px;
    background: var(--light-gray);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--medium-gray);
    color: var(--dark-gray);
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

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

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (min-width: 768px) {
    .user-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .table-container {
        overflow-x: visible;
    }
    
    table {
        min-width: 100%;
    }
}

@media (max-width: 767px) {
    .dashboard-header {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 10px;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        width: 100%;
    }
    
    .action-buttons {
        justify-content: center;
    }
}