/* Manager Dashboard Layout */
.mgr-dashboard {
    width: 100%;
    min-height: calc(100vh - 60px);
    background-color: #f8fafc;
    padding: 30px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mgr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.mgr-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 24px;
}

.mgr-actions {
    display: flex;
    gap: 15px;
}

.mgr-main {
    display: flex;
    gap: 30px;
    flex: 1;
}

.mgr-left {
    width: 40%;
    display: flex;
    flex-direction: column;
}

.mgr-right {
    width: 60%;
    display: flex;
    flex-direction: column;
}

.mgr-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mgr-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #334155;
    font-size: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.table-container {
    overflow-y: auto;
    flex: 1;
}

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

.mgr-table th,
.mgr-table td {
    padding: 14px 15px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.mgr-table th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    position: sticky;
    top: 0;
}

.mgr-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Button Styles */
.mgr-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mgr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.btn-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.btn-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.btn-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }

/* Text colors */
.text-positive { color: #16a34a; font-weight: bold; }
.text-negative { color: #dc2626; font-weight: bold; }

/* Modals */
.mgr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mgr-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mgr-modal-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.mgr-modal-overlay.active .mgr-modal-card {
    transform: scale(1);
}

.mgr-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #64748b;
    z-index: 10005;
    user-select: none;
    transition: color 0.2s ease;
}

.mgr-close-btn:hover {
    color: #ef4444;
}

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

.mgr-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
}

.mgr-form-group input, .mgr-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.mgr-form-group input:focus, .mgr-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.mgr-alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.mgr-alert.success {
    display: block;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.mgr-alert.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.customer-profile-card p {
    margin: 10px 0;
    font-size: 16px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.customer-profile-card strong {
    color: #0f172a;
    display: inline-block;
    width: 150px;
}
