﻿/* ns3 modal tokens */
:root {
    --feature-accent: #2f6aa3; /* primary blue */
    --feature-border: #787878; /* hairline border */
    --feature-muted: #7a8aa0;
    --feature-ink: #2e3c52;
    Billing Settings – scoped styles ========================= */ :root


    --bg: #f3f6fb;
    --card: #ffffff;
    --ink: #0e1726;
    --muted: #667085;
    --line: #e6ebf2;
    --primary: #6ba539; /* brand green */
    --primary-ink: #0b3d0b;
    --secondary: #2f6df6;
    --danger: #e54848;
    --warning: #f4a100;
    --success: #2fb344;

}
/* Custom styling for the route modal body */
.route-modal-body {
    /* Layout */
    display: flex;
    flex-direction: column;
    position: relative;
    /* Spacing */
    padding: 20px;
    margin: 10px auto;
    /* Size */
    width: 90%;
    max-width: 1500px;
    min-height: 200px;
    /* Background and border */
    background-color: #ffffff; /* White background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    /* Font */
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
}

    /* Optional: styling for child content inside */
    .route-modal-body h2 {
        font-size: 20px;
        margin-bottom: 10px;
        color: #222;
    }

    .route-modal-body p {
        line-height: 1.6;
        margin-bottom: 12px;
    }

    /* Optional scrollable content */
    .route-modal-body.scrollable {
        max-height: 400px;
        overflow-y: auto;
    }

/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
    padding: 4vh 2vw;
    background: radial-gradient(40% 50% at 50% 40%, color-mix(in srgb, var(--feature-accent) 12%, transparent) 0%, transparent 70%), rgba(0,0,0,.32);
    backdrop-filter: blur(2px);
    z-index: 1050;
}
.modal-body {
    padding: 16px 20px;
    max-height: 70vh; /* keeps modal body scrollable */
    overflow-y: auto;
    background: #fff;
}
/* Card shell */
.modal-content {
    display: flex;
    flex-direction: column;
    width: min(80vw,1900px);
    max-height: 92vh;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--feature-border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

/* Header */
.modal-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(#f7f9fc,#eef2f7);
    border-bottom: 1px solid #eef1f5;
    color: var(--feature-ink);
}

.modal-title {
    margin: 0;
    font-weight: 800;
    font-size: 1.05rem;
}

.modal-close {
    border: 1px solid #e1e6ef;
    background: #fff;
    color: #4a5a72;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .15s ease;
}

    .modal-close:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0,0,0,.06);
    }
.assignment-details {
    display: flex;
    gap: 2rem; /* space between items */
    align-items: center; /* align vertically */
    white-space: nowrap; /* prevent wrapping */
}

    .assignment-details p {
        margin: 0; /* remove default spacing */
        font-size: 0.95rem;
    }

/* Body */
.modal-form {
    flex: 1 1 auto;
    overflow: auto;
    padding: 16px;
}

.form-grid.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.form-grid.one-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Footer actions (arranged buttons) */
.modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: linear-gradient(#f9fbfe,#ffffff);
    border-top: 1px solid var(--feature-border);
}

    .modal-actions .left-actions,
    .modal-actions .right-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .modal-actions .right-actions {
        margin-left: auto;
    }



/* nice scrollbars in body */
.modal-form::-webkit-scrollbar {
    width: 11px;
}

.modal-form::-webkit-scrollbar-thumb {
    background: #c9d4e6;
    border-radius: 8px;
    border: 2px solid #f7f9fc;
}

.modal-form::-webkit-scrollbar-track {
    background: #f2f4f7;
}

/* Sizes */
.modal-content.modal-small-popup,
.modal-content.modal-medium-popup {
    max-height: 92vh;
}

.modal-content.modal-fullscreen {
    width: min(96vw,1400px);
    max-height: 96vh;
}

/* Responsive */
@media (max-width: 900px) {
    .modal-content {
        width: 92vw;
        max-height: 94vh;
    }

    .form-grid.two-col {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .modal-actions .right-actions {
            margin-left: 0;
        }
}
/* --- Footer spacing so content never hides behind sticky footer --- */
.modal-form {
    padding-bottom: 72px; /* room for footer buttons */
}

/* --- Stronger footer look --- */
.modal-actions {
    min-height: 56px;
    gap: 10px;
    background: linear-gradient(#f6f8fb,#ffffff);
    border-top: 1px solid #c9d3e2; /* deeper border */
}

    /* Base: deeper grey border + deep grey label */
    .modal-actions .btn {
        border-color: #98a3b3 !important; /* deeper */
        color: #243142 !important; /* deep grey text */
        background: linear-gradient(#fafbfe,#eef3f9);
        font-weight: 600;
    }

        /* icons inherit text color */
        .modal-actions .btn i {
            color: inherit;
            opacity: .9;
        }

        /* Hover/focus feel (kept subtle) */
        .modal-actions .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 18px rgba(0,0,0,.06);
            border-color: #8a95a6;
        }

        .modal-actions .btn:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(47,106,163,.18);
        }

        /* If you still want colored buttons but with darker text, keep these.
   (Comment these 3 rules out to return to the green/red/blue fills.) */
        .modal-actions .btn.primary,
        .modal-actions .btn.success,
        .modal-actions .btn.danger {
            background: linear-gradient(#fafbfe,#eef3f9); /* neutral fill */
            border-color: #98a3b3;
            color: #243142;
        }

    /* Optional: add a thin separator between left and right groups */
    .modal-actions .right-actions {
        margin-left: auto;
    }
