:root {
    --vp-primary: #0f172a;
    --vp-primary-hover: #1e293b;
    --vp-secondary: #64748b;
    --vp-bg-hover: #ffffff;
    --vp-success: #10b981;
    --vp-danger: #ef4444;
    --vp-warning: #f59e0b;
    --vp-info: #0ea5e9;
    --vp-bg-light: #f8fafc;
    --vp-bg-main: #f1f5f9;
    --vp-surface: #ffffff;
    --vp-text-main: #334155;
    --vp-text-muted: #94a3b8;
    --vp-border: #e2e8f0;
    --vp-border-radius: 12px;
    --vp-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --vp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        --vp-shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    /* old --vp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
    --vp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--vp-bg-light);
    color: var(--vp-text-main);
    font-family: var(--vp-font-family);
    line-height: 1.5;
}

.text-muted { color: var(--vp-text-muted) !important; }
.text-primary { color: var(--vp-primary) !important; text-decoration: none;}
.text-success { color: var(--vp-success) !important; }
.text-danger { color: var(--vp-danger) !important; }
.text-warning { color: var(--vp-warning) !important; }
.text-info { color: var(--vp-info) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-end { text-align: right; }

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1320px;
}

.page-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--vp-border);
}

.page-title {
    margin: 0;
    font-size: 2rem;
}

.vp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--vp-surface);
    background-clip: border-box;
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-border-radius);
    padding: 1.25rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--vp-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vp-card:hover {
    box-shadow: var(--vp-shadow-md);
    transform: translateY(-2px);
}

/* Standardized Form Controls */
.vp-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--vp-font-family);
    transition: all 0.2s;
    background: var(--vp-surface);
    color: var(--vp-text-main);
}
.vp-input:focus {
    outline: none;
    border-color: var(--vp-primary);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.vp-input-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Badges */
.badge {
    white-space: nowrap;
}
.vp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;

}
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--vp-success); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--vp-danger); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--vp-warning); }
.badge-info { background: rgba(14, 165, 233, 0.1); color: var(--vp-info); }


.vp-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.vp-alert {
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.loader-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--vp-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--vp-border);
    border-top: 4px solid var(--vp-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vp-btn {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    /* background-color: transparent; */
    border: 1px solid transparent;
    /* padding: 0.5rem 1rem; */
    padding: 0.25rem 0.5rem;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.vp-btn-primary {
    color: #fff;
    background-color: var(--vp-primary);
    border-color: var(--vp-primary);
}
.vp-btn-primary:hover {
    background-color: var(--vp-primary-hover);
    border-color: var(--vp-primary-hover);
}

.vp-btn-block {
    width: 100%;
    display: block;
}

.vp-form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.vp-form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

.vp-form-group {
    margin-bottom: 1rem;
}

.vp-form-group-last {
    margin-bottom: 1.5rem;
}

.agent-info-box {
    background: var(--vp-bg-main);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.auth-container-login {
    max-width: 400px;
    margin-top: 100px;
}

.auth-container-register {
    max-width: 450px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.auth-container-dashboard {
    margin-top: 50px;
}

.auth-link-wrapper {
    margin-top: 15px;
    text-align: center;
}

.auth-link {
    color: var(--vp-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--vp-primary-hover);
}

/* Base Tables Styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    color: var(--vp-text-main);
}

table th, table td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--vp-border);
    text-align: left;
}
@media screen and (max-width: 900px) {
    table th, table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

table th {
    font-weight: 600;
    background: var(--vp-bg-light);
    color: var(--vp-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-top: none;
    border-bottom: 2px solid var(--vp-border);
}

table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: var(--vp-bg-light);
}

/* Mobile responsive utils */
@media (max-width: 900px) {
    .hide-on-mobile {
        display: none !important;
        transition: 0.5s all;
    }
}
.hide-for-now{
    display: none !important;
}
/* Modal UI */
.vp-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vp-modal.show {
    opacity: 1;
    visibility: visible;
}

.vp-modal-content {
    background: var(--vp-surface);
    width: 100%;
    margin: 1rem;
    max-width: 500px;
    border-radius: var(--vp-border-radius);
    padding: 1.5rem;
    box-shadow: var(--vp-shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    
    /* Prevent off-screen clipping on tall modals */
    max-height: 90vh;
    overflow-y: auto;
}

.vp-modal.show .vp-modal-content {
    transform: translateY(0);
}

/* Toast Notifications */
.vp-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10600;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.vp-toast {
    background: var(--vp-surface);
    color: var(--vp-text-main);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--vp-shadow-lg);
    border-left: 4px solid var(--vp-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    min-width: 250px;
}

.vp-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.vp-toast-success { border-left-color: var(--vp-success); }
.vp-toast-error { border-left-color: var(--vp-danger); }
.vp-toast-warning { border-left-color: var(--vp-warning); }

.vp-toast i {
    font-size: 1.2rem;
}

.vp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--vp-border);
    padding-bottom: 0.5rem;
}

.vp-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--vp-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.vp-modal-close:hover {
    color: var(--vp-danger);
}

.vp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    /* margin-top: 1.5rem; */
}

/* Modal Input Variants */
.vp-input {
    display: block;
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    border: 1px solid var(--vp-border);
    border-radius: 6px;
    background-color: var(--vp-bg-light);
    color: var(--vp-text-main);
    transition: all 0.2s ease;
}

.vp-input:focus {
    outline: none;
    border-color: var(--vp-primary);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}


.vp-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--vp-text-main);
}

/* ── Global Portal Utilities ──────────────────────────────────────── */

/* Narrow modal variant (480px max) */
.vp-modal-content.vp-modal-sm { max-width: 520px; }

/* Clickable table rows */
.vp-row-clickable { cursor: pointer; }

/* Empty state icon (block, centered, faded) */
.vp-empty-icon {
    font-size: 2rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 10px;
}

/* Font weight bold helper */
.fw-bold { font-weight: 700; }

/* Wide filter group (flex:2 + min-width) */
.vp-filter-group-wide {
    flex: 2;
    min-width: 200px;
}
