/* General styles */
@import url('read-only-form.css');
body {
    font-family: 'Articulat CF', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}


@font-face {
    font-family: 'Articulat CF';
    src: url('../../font/ArticulatCF-Regular.woff2') format('woff2');
    font-weight: 400; /* Normal */
    font-style: normal;
}

@font-face {
    font-family: 'Articulat CF';
    src: url('../../font/ArticulatCF-Bold.woff2') format('woff2');
    font-weight: 700; /* Bold */
    font-style: normal;
}

@font-face {
    font-family: 'Articulat CF';
    src: url('../../font/ArticulatCF-Medium.woff2') format('woff2');
    font-weight: 500; /* Medium */
    font-style: normal;
}

@font-face {
    font-family: 'Articulat CF';
    src: url('../../font/ArticulatCF-Light.woff2') format('woff2');
    font-weight: 300; /* Light */
    font-style: normal;
}

@font-face {
    font-family: 'Articulat CF';
    src: url('../../font/ArticulatCF-Thin.woff2') format('woff2');
    font-weight: 200; /* Thin */
    font-style: normal;
}

/* Italic Versions */
@font-face {
    font-family: 'Articulat CF';
    src: url('../../font/ArticulatCF-RegularOblique.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Articulat CF';
    src: url('../../font/ArticulatCF-BoldOblique.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
}

/* Header Container */
.container-fluid-header {
    padding-left: 0px;
    padding-right: 0px;
}

/* Header Base Styles */
.header-hero {
    background: #fff;
    padding: 13px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000;
}


/* Animated Gradient for SIGN IN WITH SCHOLAR button */
/* Faster Animated Gradient for SIGN IN WITH SCHOLAR button */
.float-container.neon-btn.sign-in-scholar {
    border: none !important;
    background: #FE0000;
    color:#000
    /* background: linear-gradient(2323deg, #f64f59, #c471ed, #12c2e9);
    background-size: 1000% 1000%; */
    /* animation: gradientMove 2s ease infinite; Faster: 2s instead of 4s or more */
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Logo Styles */
.logo {
    font-weight: bold;
    font-size: 33px;
    line-height: 45px;
    letter-spacing: -0.75px;
}

.logo.sexy-logo {
    transition: transform 0.2s ease;
    position: relative;
}

.logo.sexy-logo:hover {
    transform: scale(1.05) rotate(-180deg);
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    align-items: center;
}

/* Score Icons */
.score-icons {
    display: flex;
    gap: 3px;
}

.dot {
    width: 10px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.dot:hover {
    transform: scale(1.2); /* Slight zoom effect on hover */
}
.score-icons .dot {

    transition: transform 0.3s;
}

/* Score Button Colors */
.gpa-score { background-color: #FE0000; }
.sat-score { background-color: #00A4FF; }
.act-score { background-color: #1BDA17; }
.ap-score { background-color: #9F31FB; }
.subject-score { background-color:#FA00FF; }

/* Login Form */
.login-form {
    display: flex;
    align-items: center;
}

.login-form input {
    margin-right: 5px;
    border-bottom: 1px solid #000 !important;
    border: none;
    border-radius: 0;
    margin: 0 5px;
    background-color: transparent !important;
}

.login-form button {
    padding: 3px 6px;
    border: 1px solid #000;
    background: #fff;
    font-size: 12px;
    line-height: 16px;
}

/* Logged-in state styling */
.login-form.logged-in-state {
    position: relative; /* For absolute positioning of logout */
    height: 45px; /* Match the logo's line-height to vertically align */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.welcome-message {
    color: black;
    font-size: 32px;
    font-weight: 400;
    margin: 0;
    line-height: 45px; /* Match the logo's line-height */
    text-align: right;
    font-family: 'Articulat CF', sans-serif !important;

}

/* Logout text link - commented out but kept for reference */
.logout-link {
    font-size: 14px;
    position: absolute;
    bottom: -12px;
    right: 0;
    cursor: pointer;
    color: #000;
    text-align: right;
    margin-right: 5px;
    padding-left: 10px;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Logout SVG icon styling */
.logout-icon {
    height: 24px;
    width: 24px;
    margin-left: 10px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    top: -2px;
    transition: all 0.2s ease;
}

.logout-icon:hover {
    filter: invert(13%) sepia(88%) saturate(6662%) hue-rotate(359deg) brightness(97%) contrast(114%);
    /* This filter creates exactly #FE0000 color */
    transform: scale(1.15);
    transition: all 0.2s ease;
}


/* Float Container for Form Fields */
.float-container {
    position: relative;
    margin: 0 5px;
    display: inline-block;
    width: auto;
}

.float-container input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-size: 14px;
    line-height: 1.3;
    padding: 8px 2px 4px;
    transition: all 0.2s ease;
    outline: none;
}

.float-container label {
    position: absolute;
    pointer-events: none;
    left: 2px;
    top: 8px;
    font-size: 14px;
    color: #777;
    transition: 0.2s ease all;
}

.float-container input:focus ~ label,
.float-container input:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 12px;
    color: #006dff;
}

/* Neon Button */
.nav-icons .pb-0.neon-btn,
.login-form button.neon-btn {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 3px 6px;
    transition: box-shadow 0.3s ease;
}

.nav-icons .pb-0.neon-btn:hover,
.login-form button.neon-btn:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 0, 0, 0.8);
}

@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); }
    50%      { box-shadow: 0 0 15px rgba(0, 0, 0, 0.8); }
}

.nav-icons .pb-0.neon-btn:hover {
    animation: neonPulse 1.5s infinite alternate;
}

@media only screen and (max-width: 1023px) {
    .login-form, .header {
        display: block;
    }
    .login-form input {
        margin: 7px 0px !important;
    }
    .login-form button{
        margin: 7px 0px !important;
    }
    .header{
        padding: 13px 23px !important;
    }
    .comment-card{
        width: 100% !important;
    }
    .rankings-table th, .rankings-table td{
        font-size: 17px !important;
    }
}
@media only screen and (max-width: 600px) {
    .feedback-btn{
        font-size: 11px !important;
    }
}
/* Google Login Button */
.google-login-btn {
    border: none !important;
    background: none;
    padding: 5px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.google-login-btn img {
    width: 24px;
    height: 24px;
}

/* Animation for Header */
@keyframes fadeDownFromTopRight {
    0% {
        opacity: 0;
        transform: translate(0px, -100px);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

.fadeDownHeader {
    opacity: 0;
    animation: fadeDownFromTopRight 0.5s ease forwards;
}

/* Responsive Styles */
@media only screen and (max-width: 1023px) {
    .login-form, .header {
        display: block;
    }
    .login-form input {
        margin: 7px 0px !important;
    }
    .login-form button {
        margin: 7px 0px !important;
    }
    .header {
        padding: 13px 23px !important;
    }
}


/* Table Styles */
.table-wrapper {
    margin: 20px auto;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

/* Removed black outlines from cells */

.table-header {
    background-color: #fff;
    padding: 10px 20px;
    text-align: center;
    position: relative; /* For absolute positioning of the button */
}

/* Show Done Button */
.show-done-btn {
    background-color: #1BDA17; /* Green background */
    color: #000; /* White text */
    border: none;
    border-radius: 8px; /* Rounded corners */
    padding: 8px 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    /* text-transform: uppercase; */
    font-size: 1em;
    /* letter-spacing: 0.5px; */
}

.show-done-btn:hover {
    transform: translateY(-50%) scale(1.05);
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    background-color: #19c415; /* Slightly darker on hover */
}

/* Show Drafts Button */
.show-drafts-btn {
    background-color: #FFA500; /* Orange background */
    color: #000; /* White text */
    border: none;
    border-radius: 8px; /* Rounded corners */
    padding: 8px 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    right: 160px; /* Position to the left of Show Done button with more space */
    top: 50%;
    transform: translateY(-50%);
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    /* text-transform: uppercase; */
    font-size: 1em;
    /* letter-spacing: 0.5px; */
}

.show-drafts-btn:hover {
    transform: translateY(-50%) scale(1.05);
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    background-color: #f09600; /* Slightly darker on hover */
}

.table-header h2 {
    margin: 0;
    font-weight: bold;
    color: black !important;
}

/* Star rating styles */
.star-rating {
    display: flex;
    color: gold;
}

.star {
    color: rgb(0, 0, 0);
    font-size: 16px;
    margin-right: 2px;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .ag-theme-quartz {
        height: 600px;
    }
}

@media (max-width: 768px) {
    /* Header-related styles removed */
}

/* AG Grid Quartz Theme Styles */
.ag-theme-quartz {
    height: 800px !important;
    font-family: 'Articulat CF', sans-serif !important;
    --ag-border-radius: 0px !important;
    --ag-header-column-separator-display: block !important;
    --ag-header-column-separator-height: 100% !important;
    --ag-header-column-separator-width: 2px !important; /* Changed from 4px to 2px */
    --ag-header-column-separator-color: white !important;
    --ag-borders: none !important;
    --ag-row-border-width: 0 !important;
    --ag-border-color: transparent !important;
    --ag-input-placeholder-color: rgba(0, 0, 0, 0.7) !important;
}

/* Remove all border radius */
.ag-theme-quartz .ag-root-wrapper,
.ag-theme-quartz .ag-header,
.ag-theme-quartz .ag-body-viewport,
.ag-theme-quartz .ag-center-cols-container {
    border-radius: 0 !important;
}

/* Make header column separators more visible */
.ag-theme-quartz .ag-header-cell::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%; /* Full height of the header cell */
    width: 2px; /* Changed from 4px to 2px to match the variable width */
    background-color: white;
    z-index: 2;
}

.ag-theme-quartz .ag-header-cell::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%; /* Full height of the header cell */
    width: 2px; /* Changed from 4px to 2px to match the variable width */
    background-color: white;
    z-index: 2;
}
/* Remove the separator from the last column */
.ag-theme-quartz .ag-header-cell:last-child::after {
   content: none !important;
   display: none !important;
}
.ag-theme-quartz .ag-header-cell:last-child::before {
    content: none !important;
    display: none !important;
 }
/* Fix for AG Grid filter popup hiding the grid */
.ag-popup {
    height: 0 !important;
    min-height: 0 !important;
}

/* Column menu icon styling (previously hidden) */
.ag-header-icon.ag-header-cell-menu-button {
display: none !important;
}

/* Add black border around ONLY the header cells (not floating filter cells) */
.ag-theme-quartz .ag-header-row:not(.ag-header-row-column-filter) .ag-header-cell {
    border-top: 1px solid black !important;
    border-bottom: 1px solid black !important;

    border-right: none !important; /* Remove right border since we have white separators */
}
/* The last header cell needs a right border */
.ag-theme-quartz .ag-header-row:not(.ag-header-row-column-filter) .ag-header-cell:first-child {
    border-left: 1px solid black !important;
}

/* The last header cell needs a right border */
.ag-theme-quartz .ag-header-row:not(.ag-header-row-column-filter) .ag-header-cell:last-child {
    border-right: 1px solid black !important;
}

/* Ensure there are no borders on floating filter cells */
.ag-theme-quartz .ag-header-row.ag-header-row-column-filter .ag-header-cell {
    border: none !important;
    border-right: none !important;
    background: transparent !important;
}

/* Filter input styling with black borders */
.ag-theme-quartz .ag-floating-filter-input {
    border: none !important;
    /* background: transparent !important; */
    color:#000;

}

.ag-theme-quartz .ag-floating-filter-input input {
    border: 1px solid #eeeeee !important;
    border-radius: 0 !important;
    background: white !important;
    color:#000;
}

/* Enhanced placeholder styles for AG Grid v31 - multiple selectors for better coverage */
.ag-floating-filter-input::placeholder,
.ag-floating-filter-input input::placeholder,
.ag-theme-quartz input::placeholder,
.ag-theme-quartz .ag-filter-filter::placeholder,
.ag-filter-text-field input::placeholder,
input.ag-input-field-input.ag-text-field-input::placeholder {
    color: rgba(0, 0, 0, 0.7) !important; 
    opacity: 1 !important;
    font-style: normal !important;
    font-size: 13px !important;
}

/* Style the actual filter inputs */
.ag-theme-quartz .ag-floating-filter-input,
.ag-theme-quartz .ag-filter-filter,
.ag-theme-quartz input.ag-input-field-input {
    font-family: 'Articulat CF', sans-serif !important;
    color: #000 !important;
    font-size: 13px !important;
}

/* Filter buttons are now visible for date filtering */
.ag-theme-quartz .ag-floating-filter-button {
    /* display: none !important; */
}

/* Column headers with specific background colors */
.ag-theme-quartz .ag-header-cell[col-id="title"] {
    background-color: #FE0000 !important;
}

.ag-theme-quartz .ag-header-cell[col-id="ranking"] {
    background-color: #1BDA17 !important;
}

.ag-theme-quartz .ag-header-cell[col-id="description"] {
    background-color: #9D00FF !important;
}

.ag-theme-quartz .ag-header-cell[col-id="ar"] {
    background-color: #006DFF !important;
}

.ag-theme-quartz .ag-header-cell[col-id="deadline"] {
    background-color: #BCFF00 !important;
}

.ag-theme-quartz .ag-header-cell[col-id="genres"] {
    background-color: #F0FF00 !important;
}

.ag-theme-quartz .ag-header-cell[col-id="stars"] {
    background-color: #00CFFF !important;
}

.ag-theme-quartz .ag-header-cell[col-id="type"] {
    background-color: #FF00E0 !important;
}

.ag-theme-quartz .ag-header-cell[col-id="submissionType"] {
    background-color: #9990FF !important;
}

.ag-theme-quartz .ag-header-cell[col-id="prize"] {
    background-color: #00FF39 !important;
}

/* Header text colors - all black */
.ag-theme-quartz .ag-header-cell-text {
    color: black !important;
    font-weight: 700;
}

/* Make sure all text is visible in cells */
.ag-theme-quartz .ag-cell {
    overflow: hidden !important;
    line-height: 1.4 !important;
    padding: 10px !important;
    font-family: 'Articulat CF', sans-serif !important;
    font-size: 14px !important;
    display: block !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 40px !important;
}

/* Ensure rows can expand */
.ag-theme-quartz .ag-row {
    height: auto !important;
}

/* Cell styling */
.cell-bold {
    font-weight: bold !important;
}

.cell-uppercase {
    text-transform: uppercase !important;
}

/* Text formatting for specific columns */
.title-cell {
    font-weight: bold !important;
    text-transform: uppercase !important;
}

.ranking-cell {
    text-transform: uppercase !important;
}
/* 
.genres-cell {
    text-transform: uppercase !important;
}

.type-cell {
    text-transform: uppercase !important;
} */

.prize-cell {
    font-weight: bold !important;
}

.ap-cell {
    text-align: center !important; 
    font-weight: bold !important;
}

/* Header text styles */
.ag-theme-quartz .ag-header-cell-text {
    color: black !important;
    font-weight: 700 !important;
    font-size: 21px;
    text-transform: lowercase !important;
    font-family: 'Articulat CF', sans-serif !important;
}

/* For better visibility */
.ag-theme-quartz {
    --ag-grid-size: 6px !important;
    --ag-border-color: #ccc !important;
}

/* Row styling */
.ag-row-custom {
    border-bottom: none !important;
}

/* Alternating row colors - simple and direct */
.ag-theme-quartz .ag-row:nth-child(odd) {
    background-color: #ffffff !important;
}

.ag-theme-quartz .ag-row:nth-child(even) {
    background-color: #E6EDF5 !important; /* Light grayish-blue */
}

/* Apply styles directly to the ag-row class for compatibility */
.ag-theme-quartz .ag-row-even {
    background-color: #E6EDF5 !important; /* Light grayish-blue */
}

.ag-theme-quartz .ag-row-odd {
    background-color: #ffffff !important;
}

/* Important CSS Variables to override AG Grid default theme */
.ag-theme-quartz {
    --ag-odd-row-background-color: #ffffff !important;
    --ag-even-row-background-color: #E6EDF5 !important; /* Light grayish-blue */
    --ag-row-hover-color: transparent !important;
    --ag-selected-row-background-color: transparent !important;
}

/* Remove borders from rows */
.ag-theme-quartz .ag-row {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Header coloring handled by JS */
.ag-header-cell {
    transition: background-color 0.3s ease !important;
}

/* Side Modal Styles */
.side-modal-container {
    font-family: 'Articulat CF', sans-serif !important;
    visibility: hidden; /* Instead of display:none for smoother transitions */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: 
        visibility 0s 0.9s, 
        opacity 0.75s cubic-bezier(0.33, 1, 0.68, 1);
}

.side-modal-container.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: 
        visibility 0s, 
        opacity 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* BLOCKING MODE: Captures all clicks in backdrop area */
    pointer-events: all; /* To disable blocking and allow clicks to pass through, change to: pointer-events: none; */
    z-index: 1001; /* Ensure backdrop is behind modal */
}

.side-modal-container.active .modal-backdrop {
    opacity: 1;
}

.side-modal {
    font-family: 'Articulat CF', sans-serif !important;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background-color: #000;
    transform: translateX(100%) scale(0.98);
    opacity: 0;
    transition: 
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    pointer-events: all; /* Ensure modal captures all mouse events */
    z-index: 1002; /* Higher z-index than backdrop */
}

.side-modal-container.active .side-modal {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    /* border-bottom: 1px solid #333; */
    border-bottom: 1px solid rgba(255,255,255,0.1);

    opacity: 0;
    transform: translateY(10px);
    transition: 
        opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.side-modal-container.active .modal-header {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for header content */
.modal-header h2 {
    opacity: 0;
    transform: translateY(15px);
    transition: 
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header p:first-of-type {
    opacity: 0;
    transform: translateY(15px);
    transition: 
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header p:last-of-type {
    opacity: 0;
    transform: translateY(15px);
    transition: 
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-modal-container.active .modal-header h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.side-modal-container.active .modal-header p:first-of-type {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.side-modal-container.active .modal-header p:last-of-type {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.modal-close-btn {
    border-radius: 100px;
    background: red;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.modal-close-btn:hover {
    transform: scale(1.2);
}

.modal-content {
    flex: 1;
    padding: 0px 25px 25px 25px; /* Top: 10px, Right: 25px, Bottom: 25px, Left: 25px */
    overflow-y: auto;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: 
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.side-modal-container.active .modal-content {
    opacity: 1;
    transform: translateY(0);
}

/* Individual elements within modal content animate in sequence */
.side-modal-container.active .modal-content > * {
    animation: fadeInContent 0.5s ease-out forwards;
    opacity: 0;
}

/* Staggered animation for children of modal content */
.side-modal-container.active .modal-content > *:nth-child(1) { animation-delay: 0.3s; }
.side-modal-container.active .modal-content > *:nth-child(2) { animation-delay: 0.4s; }
.side-modal-container.active .modal-content > *:nth-child(3) { animation-delay: 0.5s; }
.side-modal-container.active .modal-content > *:nth-child(4) { animation-delay: 0.6s; }
.side-modal-container.active .modal-content > *:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form elements animation */
.side-modal-container.active .form-group,
.side-modal-container.active .formbuilder-checkbox-group,
.side-modal-container.active .formbuilder-radio-group,
.side-modal-container.active .form-preview-container > * {
    animation: fadeInFormElements 0.5s ease-out forwards;
    opacity: 0;
}

/* Staggered animation for form elements */
.side-modal-container.active .form-group:nth-child(1),
.side-modal-container.active .formbuilder-checkbox-group:nth-child(1),
.side-modal-container.active .formbuilder-radio-group:nth-child(1) { animation-delay: 0.35s; }
.side-modal-container.active .form-group:nth-child(2),
.side-modal-container.active .formbuilder-checkbox-group:nth-child(2),
.side-modal-container.active .formbuilder-radio-group:nth-child(2) { animation-delay: 0.4s; }
.side-modal-container.active .form-group:nth-child(3),
.side-modal-container.active .formbuilder-checkbox-group:nth-child(3),
.side-modal-container.active .formbuilder-radio-group:nth-child(3) { animation-delay: 0.45s; }
.side-modal-container.active .form-group:nth-child(4),
.side-modal-container.active .formbuilder-checkbox-group:nth-child(4),
.side-modal-container.active .formbuilder-radio-group:nth-child(4) { animation-delay: 0.5s; }
.side-modal-container.active .form-group:nth-child(5),
.side-modal-container.active .formbuilder-checkbox-group:nth-child(5),
.side-modal-container.active .formbuilder-radio-group:nth-child(5) { animation-delay: 0.55s; }

/* Submit button appears last */
.side-modal-container.active .submit-container { animation-delay: 0.6s; }

@keyframes fadeInFormElements {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add cursor pointer to table rows */
.ag-theme-quartz .ag-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Form preview styles for the side modal - Styled to match form-builder-dark-v2 */
.form-preview-container {
    padding: 15px;
    color: white;
    font-family: 'Articulat CF', sans-serif !important;
    background-color: var(--card, #111113);
    /* border:1px solid rgba(255,255,255,0.1); */
    border-radius: 12px;
}

/* Tab container styling that exactly matches form-builder-dark-v2 */
.modal-content .tab-container {
    display: flex;
    padding: 0.75rem 1rem 0;
    background-color: var(--card, #111113);
    border-bottom: 1px solid var(--border, #27272A);
    gap: 0.5rem;
    margin-bottom: 0;
}

.modal-content .tab {
    background-color: transparent;
    color: var(--muted-foreground, #A1A1AA);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    border-top-left-radius: var(--radius, 0.5rem);
    border-top-right-radius: var(--radius, 0.5rem);
    transition: all 0.2s ease;
    outline: none;
    margin-bottom: -1px;
}

.modal-content .tab:hover {
    color: var(--foreground, #FFFFFF);
    background-color: rgba(255, 255, 255, 0.03);
}

.modal-content .tab.active {
    color: var(--foreground, #FFFFFF);
    background-color: var(--card, #111113);
    border-color: var(--border, #27272A);
    border-bottom-color: var(--card, #111113);
}

/* Form container styling */
.modal-content #modal-rendered-form {
    flex-grow: 1;
    padding: 1rem;
    color: var(--foreground, #FFFFFF);
    margin-bottom: 20px;
}

.modal-content #modal-rendered-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form field styling - Exact match to form-builder-dark-v2 */
.modal-content #modal-rendered-form label,
.modal-content .rendered-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground, #FFFFFF);
    font-family: 'Articulat CF', sans-serif !important;
}

.modal-content #modal-rendered-form input[type="text"],
.modal-content #modal-rendered-form input[type="email"],
.modal-content #modal-rendered-form input[type="password"],
.modal-content #modal-rendered-form input[type="number"],
.modal-content #modal-rendered-form input[type="date"],
.modal-content #modal-rendered-form select,
.modal-content #modal-rendered-form textarea,
.modal-content .rendered-form input[type="text"],
.modal-content .rendered-form input[type="email"],
.modal-content .rendered-form input[type="password"],
.modal-content .rendered-form input[type="number"],
.modal-content .rendered-form input[type="date"],
.modal-content .rendered-form select,
.modal-content .rendered-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: var(--muted, #1E1E20);
    color: var(--foreground, #FFFFFF);
    border: 1px solid var(--border, #27272A);
    border-radius: var(--radius, 0.5rem);
    font-size: 0.875rem;
    line-height: 1.5;
    transition: all 0.15s ease;
    font-family: 'Articulat CF', sans-serif !important;
}

.modal-content #modal-rendered-form input:focus,
.modal-content #modal-rendered-form select:focus,
.modal-content #modal-rendered-form textarea:focus,
.modal-content .rendered-form input:focus,
.modal-content .rendered-form select:focus,
.modal-content .rendered-form textarea:focus {
    outline: none;
    border-color: var(--primary, #6D28D9);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.2);
}

.modal-content #modal-rendered-form input::placeholder,
.modal-content .rendered-form input::placeholder {
    color: var(--muted-foreground, #A1A1AA);
}

/* Checkboxes and Radio buttons - Styled exactly like form-builder-dark-v2 */
.modal-content #modal-rendered-form input[type="checkbox"],
.modal-content #modal-rendered-form input[type="radio"],
.modal-content .rendered-form input[type="checkbox"],
.modal-content .rendered-form input[type="radio"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--border, #27272A);
    background-color: var(--muted, #1E1E20);
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.15s ease;
}

.modal-content #modal-rendered-form input[type="checkbox"],
.modal-content .rendered-form input[type="checkbox"] {
    border-radius: 0.25rem;
}

.modal-content #modal-rendered-form input[type="radio"],
.modal-content .rendered-form input[type="radio"] {
    border-radius: 50%;
}

.modal-content #modal-rendered-form input[type="checkbox"]:checked,
.modal-content #modal-rendered-form input[type="radio"]:checked,
.modal-content .rendered-form input[type="checkbox"]:checked,
.modal-content .rendered-form input[type="radio"]:checked {
    background-color: var(--primary, #6D28D9);
    border-color: var(--primary, #6D28D9);
}

.modal-content #modal-rendered-form input[type="checkbox"]:checked::after,
.modal-content .rendered-form input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.5rem;
    height: 0.5rem;
    background-color: white;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    mask-size: cover;
    -webkit-mask-size: cover;
}

.modal-content #modal-rendered-form input[type="radio"]:checked::after,
.modal-content .rendered-form input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: white;
}

/* Heading and paragraph styles */
.modal-content .rendered-form h1,
.modal-content .rendered-form h2,
.modal-content .rendered-form h3,
.modal-content .rendered-form h4,
.modal-content .rendered-form h5,
.modal-content .rendered-form h6 {
    color: var(--foreground, #FFFFFF);
    margin-top: 0;
    font-family: 'Articulat CF', sans-serif !important;
    font-weight: 600;
    line-height: 1.2;
}

.modal-content .rendered-form h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.modal-content .rendered-form p {
    color: var(--muted-foreground, #A1A1AA);
    line-height: 1.6;
}

/* Form groups and spacing */
.modal-content .form-group {
    margin-bottom: 1.5rem;
}

.modal-content .rendered-form .formbuilder-checkbox-group,
.modal-content .rendered-form .formbuilder-radio-group {
    margin-bottom: 1rem;
}

/* Fix for radio and checkbox items to display labels inline */
.modal-content #modal-rendered-form .checkbox-group,
.modal-content #modal-rendered-form .radio-group,
.modal-content .rendered-form .checkbox-group,
.modal-content .rendered-form .radio-group {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-content #modal-rendered-form .radio-inline,
.modal-content #modal-rendered-form .checkbox-inline,
.modal-content .rendered-form .radio-inline,
.modal-content .rendered-form .checkbox-inline {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 4px !important;
}

.modal-content #modal-rendered-form .radio-inline label,
.modal-content #modal-rendered-form .checkbox-inline label,
.modal-content .rendered-form .radio-inline label,
.modal-content .rendered-form .checkbox-inline label {
    display: inline-block !important;
    margin-bottom: 0 !important;
    margin-left: 2px !important;
    vertical-align: middle !important;
}

.modal-content #modal-rendered-form .radio-inline input[type="radio"],
.modal-content #modal-rendered-form .checkbox-inline input[type="checkbox"],
.modal-content .rendered-form .radio-inline input[type="radio"],
.modal-content .rendered-form .checkbox-inline input[type="checkbox"] {
    margin-right: 8px !important;
    vertical-align: middle !important;
}

/* Alternative targeting for other formRender structures */
.modal-content #modal-rendered-form .formbuilder-radio,
.modal-content #modal-rendered-form .formbuilder-checkbox,
.modal-content .rendered-form .formbuilder-radio,
.modal-content .rendered-form .formbuilder-checkbox {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 6px !important;
}

.modal-content #modal-rendered-form [class*="radio-group"] label,
.modal-content #modal-rendered-form [class*="checkbox-group"] label,
.modal-content .rendered-form [class*="radio-group"] label,
.modal-content .rendered-form [class*="checkbox-group"] label {
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 4px !important;
}

/* Universal checkbox/radio item fix */
.modal-content .form-check {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 6px !important;
}

.modal-content .form-check-label {
    margin-left: 8px !important;
    margin-bottom: 0 !important;
}

/* Required field indicators */
.modal-content .required-asterisk {
    color: #EF4444;
    margin-left: 0.25rem;
}

/* Custom styling for select options */
.modal-content select option {
    background-color: var(--muted, #1E1E20);
    color: var(--foreground, #FFFFFF);
}

/* Submit button - Exact purple styling from form-builder-dark-v2 */
.modal-content .submit-btn {
    background-color: var(--primary, #6D28D9);
    color: var(--primary-foreground, #FFFFFF);
    border: none;
    border-radius: var(--radius, 0.5rem);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    min-width: 8rem;
    font-family: 'Articulat CF', sans-serif !important;
}

.modal-content .submit-btn:hover {
    background-color: var(--accent, #4C1D95);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.modal-content .submit-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Notification with purple accent border */
.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--card, #111113);
    color: var(--card-foreground, #FFFFFF);
    border: 1px solid var(--border, #27272A);
    border-left: 4px solid var(--primary, #6D28D9); /* Purple accent border */
    box-shadow: var(--shadow, 0 4px 12px rgba(0, 0, 0, 0.3));
    padding: 1rem;
    border-radius: var(--radius, 0.5rem);
    font-size: 0.875rem;
    font-family: 'Articulat CF', sans-serif !important;
    z-index: 99999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Styles for application submission status */
.submission-complete {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
    animation: fadeIn 0.5s ease-in-out;
}

/* Status cell styling for submitted applications */
.ag-theme-quartz .status-cell.submitted,
.ag-theme-quartz .ag-cell[col-id="status"][value="submitted"],
.ag-theme-quartz .ag-cell[col-id="status"]:contains("done!") {
    color: #4CAF50;
    font-weight: 900 !important; /* Extra bold */
}

/* Styling for entire row of submitted applications */
.ag-theme-quartz .submitted-row {
    text-decoration: line-through;
    color: #4CAF50 !important; /* Green color */
    opacity: 0.9;
}

/* Override text color for all cells in submitted rows */
.ag-theme-quartz .submitted-row .ag-cell {
    color: #4CAF50 !important;
    text-decoration: line-through;
}

/* Styling for entire row of draft applications */
.ag-theme-quartz .draft-row {
    color: #FFA500 !important; /* Orange color */
    opacity: 0.9;
}

/* Override text color for all cells in draft rows */
.ag-theme-quartz .draft-row .ag-cell {
    color: #FFA500 !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Button group for save and submit buttons */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Save draft button styling */
.save-draft-btn {
    background-color: var(--secondary, #666666);
    color: var(--primary-foreground, #FFFFFF);
    border: none;
    border-radius: var(--radius, 0.5rem);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    height: 2.5rem;
    min-width: 8rem;
    font-family: 'Articulat CF', sans-serif !important;
}

.save-draft-btn:hover {
    background-color: var(--secondary-dark, #444444);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.save-draft-btn:active {
    transform: translateY(0);
}

/* Status styling for draft applications */
.ag-theme-quartz .status-cell.draft,
.ag-theme-quartz .ag-cell[col-id="status"][value="draft"] {
    color: #FFA500; /* Orange color for drafts */
    font-style: italic;
    font-weight: normal;
}

/* Styling for rows with deadlines within 2 weeks */
.ag-theme-quartz .urgent-deadline-row {
    background-color: rgba(255, 0, 0, 0.09) !important; /* Light red background */
}

/* Override background color for all cells in urgent deadline rows */
.ag-theme-quartz .urgent-deadline-row .ag-cell {
    background-color: rgba(255, 0, 0, 0.09) !important;
}

/* Auth Modal Styles for Save/Submit Actions */
.auth-modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999999999999999;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-family: 'Articulat CF', sans-serif;
}

.auth-modal-container.show {
    display: block;
}

.auth-modal-container.fade-out {
    opacity: 0;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Important: This prevents clicks from passing through to backdrop */
    pointer-events: all;
}

.auth-modal {
    position: relative;
    width: 450px;
    max-width: 90%;
    margin: 10% auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
    z-index: 10000;
    padding: 25px;
}

.auth-modal-header {
    padding: 0 0 15px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-modal-title {
    margin: 0;
    color: #000000;
    font-size: 22px;
    font-weight: bold;
    font-family: 'Articulat CF', sans-serif;
}

.auth-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    display: block;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.auth-modal-close:hover {
    transform: scale(1.2);
}

.auth-modal-body {
    padding: 0;
}

.auth-modal-description {
    margin-bottom: 20px;
    color: #000000;
    font-size: 16px;
}

/* Auth login form */
.auth-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-login-form .float-container {
    width: 100%;
    margin: 0 0 10px 0;
}

.auth-login-form .float-container input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-size: 14px;
    line-height: 1.3;
    padding: 8px 2px 4px;
    transition: all 0.2s ease;
    outline: none;
}

.auth-login-form .float-container label {
    position: absolute;
    pointer-events: none;
    left: 2px;
    top: 8px;
    font-size: 14px;
    color: #777;
    transition: 0.2s ease all;
}

.auth-login-form .float-container input:focus ~ label,
.auth-login-form .float-container input:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 12px;
    color: #006dff;
}

.auth-login-form .button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#auth-login-button {
    background: #000;
    border: 1px solid #000000;
    color: #fff;
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    padding: 5px 25px 3px 25px !important;
    margin: 0;
    width: 100%;
    transition: all 0.2s ease;
}

#auth-login-button:hover {
    background: #000000;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* Mobile-specific styles for the opportunity detail modal */
@media (max-width: 767px) {
    .side-modal {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Additional adjustments for better mobile experience */
    .modal-header {
        padding: 12px !important;
    }
    
    .modal-content {
        padding: 0px 15px 15px 15px !important;
    }
    
    /* Ensure the modal close button is easily tappable */
    .modal-close-btn {
        width: 27px !important;
        height: 27px !important;
        font-size: 28px !important;
    }
}
