
:root {
    --fss-blue: #2c2d7f;
    --fss-yellow: #fba61e;
}

.text-fss-primary {
    color: var(--fss-blue) !important;
}

.bg-fss-primary {
    background: var(--fss-blue) !important;
}

.text-fss-secondary {
    color: var(--fss-yellow) !important;
}

.bg-fss-secondary {
    background: var(--fss-yellow) !important;
}

.white-space-pre-line {
    white-space: pre-line;
}

.accent-card {
    border-top-width: 3px;
    border-top-color: var(--bs-primary) !important;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important
}
/*I'm no convinced this is best... but our form groups do need some space*/
.form-group {
    margin-bottom: 1rem;
}
/* 
    floating labels do not support "rows" attribute for textarea, so we have these helper css classes

    NOTE: they are not magic, they do not detect the rows attribute.  
    however we do have a Taghelper, float-form-text-area, which WILL translate rows attribute to these css classes

*/
textarea.rows-2 {
    height: 4.5em !important;
}

textarea.rows-3 {
    height: 5.5em !important;
}

textarea.rows-4 {
    height: 6.5em !important;
}

textarea.rows-5 {
    height: 8em !important;
}
/* Button Cell Container & Children */
.btn-cell-container {
    min-width: 40px !important;
}

    .btn-cell-container.two-button {
        min-width: 100px !important;
    }

    .btn-cell-container.three-button {
        min-width: 120px !important;
    }

    .btn-cell-container a, .btn-cell-container button {
        /* width: 25px;
        height: 25px;
        display: inline-block;
        padding-top: 1px !important;
        padding-left: 5px !important;*/
    }
/* this fixes the issue where dropdowns inside cells are cut off in datatables.net when there are not enough rows visible 

        of course a really long menu will still have issues :(

        it's ONLY an issue if scrolling has been enabled.  if scrolling is not enabled, no issue
    */
.dataTables_scrollBody {
    min-height: 150px;
}

/* for some reason the materia bootswatch is missing the error border for select */
.has-danger .form-select{
    border-bottom: none;
    box-shadow: inset 0 -2px 0 var(--bs-danger)
}

/* Materia Bootswatch sets --bs-btn-bg:transparent on all .btn base styles.
   Outline and light buttons render with no fill, which is invisible on non-white backgrounds.
   This restores a white fill so they're always visible. */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-dark {
    background-color: #fff;
}
.btn-light {
    background-color: #f8f9fa;
}

.plain-link {
    text-decoration: none;
}



/*this fixes an issue with datatables column headers not resizing when you resize the window... does it break anything else?*/
/* this makes ALL bootstrap tables 100%, that's not what i intended, but to change it now means testing every page :(*/
.dataTables_scrollHeadInner, .table {
    width: 100% !important
}
/* this is to override the accident we have above, if you explicitly say auto then you get auto*/
.table.w-auto{
    width:auto!important;
}

/* Custom Line Clamp */
.line-clamp-1 {
    /* show only 1 lines*/
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* number of lines to show */
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.line-clamp-2 {
    /* show only 2 lines*/
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.line-clamp-3 {
    /* show only 3 lines*/
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* number of lines to show */
    line-clamp: 3;
    -webkit-box-orient: vertical;
}


@keyframes glow {
    0% {
        color: #999;
    }

    50% {
    /*    color: #ff0;*/
        color: #9c27b0; /*var(--bs-info);*/
    }

    100% {
        color: #999;
    }
}

.glowing-text {
    animation: glow 1s ease-out;
}

/* Drag-and-Drop Zone for File Uploads */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.drop-zone:hover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.drop-zone-active {
    border-color: #0d6efd;
    background-color: #cfe2ff;
    transform: scale(1.02);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone-content i {
    color: #6c757d;
}

.drop-zone-active .drop-zone-content i {
    color: #0d6efd;
}

/* FSS Layout — flex column so page content fills viewport minus navbar */
.main-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-body > .container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
}