/* Organization View Dashboards - Specific styling separate from student view */

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

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

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

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

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

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

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

/* Apply Articulat CF font to all elements */
* {
    font-family: 'Articulat CF', sans-serif;
}

/* Import header styles from the main styles.css file */

/* Header styles - copied from main styles.css */
.header-hero {
    background: #fff;
    padding: 13px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000;
    position: relative;
    z-index: 1;
}

/* Login Form Styles - copied from main styles.css */
.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;
}

/* 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);
}

/* Animated Gradient for SIGN IN WITH SCHOLAR button */
.float-container.neon-btn.sign-in-scholar {
    border: none !important;
    background: #FE0000;
    color: #000;
}

/* 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;
}

/* 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; }

/* 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 {
    font-size: 32px;
    font-weight: 400;
    margin: 0;
    line-height: 45px; /* Match the logo's line-height */
    text-align: right;
}

/* 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%);
    transform: scale(1.15);
    transition: all 0.2s ease;
}

/* 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;
}

/* Organization dashboard specific styles */
.breadcrumb {
    margin: 20px 0;
    font-family: 'Articulat CF', sans-serif;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #000;
}

.breadcrumb-item.active {
    font-weight: bold;
    color: #c2c2c2; /* Very light gray */

}

.table-title {
    margin-bottom: 0; /* Removed margin between title and table */
    position: relative;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 4px;
}

/* Organization name container */
.org-name-container {
    display: inline-flex;
    align-items: center;
}

/* Editable organization name styling */
#org-name {
    cursor: text;
    outline: none;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid transparent;
}

#org-name:hover {
    border: 1px solid #d0d0d0;
}

#org-name:focus {
    border: 1px solid #d0d0d0;
}

#org-name:empty:before {
    content: "MY FOUNDATION";
    color: #999;
    font-style: italic;
}

/* Static text part */
.static-text {
    white-space: nowrap;
}

/* Editable cell styling */
.editable-cell {
    cursor: text;
}

/* View cell styling */
.view-cell {
    cursor: pointer;
}

/* Questionnaire cell styling */
.questionnaire-cell {
    cursor: pointer;
}

/* Loading indicator */
.loading-indicator {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
}

/* Action buttons - Go back and Add new */
.add-new-btn {
    background-color: #3cff00;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    float: right;
    margin-bottom: 0; /* Removed margin between buttons and table */
    transition: all 0.25s ease;
    cursor: pointer;
}

.go-back-btn{
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    float: right;
    margin-bottom: 0; /* Removed margin between buttons and table */
    transition: all 0.25s ease;
    cursor: pointer;
} 

.go-back-btn:hover, .add-new-btn:hover {
    background-color: #2b00ff;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Add New button specific styling */
.add-new-btn {
    margin-left: 10px;
}

/* Click animation for Add New button */
.add-new-btn.clicked {
    animation: button-click 0.3s ease;
}

@keyframes button-click {
    0% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(0.95);
        background-color: #FF4500;
    }
    100% {
        transform: scale(1.05);
    }
}

/* Status dropdown styling */
.status-select {
    width: 100%;
    padding: 5px;
    border: 1px solid #2196F3;
    border-radius: 4px;
    font-family: 'Articulat CF', sans-serif;
    font-size: 14px;
    color: #000;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
    cursor: pointer;
    outline: none;
}

.status-select:focus {
    border-color: #FE0000;
    box-shadow: 0 0 8px rgba(254, 0, 0, 0.3);
}

/* Status cell styling */
.status-cell {
    position: relative;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out;
}

.status-cell:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(33, 150, 243, 0.05);
    pointer-events: none;
}

.status-cell:hover::after {
    content: '✏️';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.6;
}

/* Animation for status change */
@keyframes status-changed {
    0% {
        background-color: rgba(33, 150, 243, 0);
    }
    50% {
        background-color: rgba(33, 150, 243, 0.1);
    }
    100% {
        background-color: rgba(33, 150, 243, 0);
    }
}

.status-changed-animation {
    animation: status-changed 0.8s ease;
}

/* Header actions container */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0; /* Removed margin between header actions and table */
}

/* AG Grid Theme - implementing the exact theme parameters specified, NO COLORED HEADERS */
.ag-theme-quartz-org {
    /* Theme parameters as specified in requirements */
    --ag-foreground-color: #000000;
    --ag-background-color: #ffffff;
    --ag-header-foreground-color: #000000;
    --ag-header-background-color: #F9FAFB;
    --ag-odd-row-background-color: #F9FAFB;
    --ag-border-color: #00000026;
    
    /* Border configurations */
    --ag-borders: none;
    --ag-row-border-width: 0;
    --ag-cell-horizontal-border: none;
    --ag-header-column-separator-display: none;
    
    /* Other styling specified in the theme - updated with Articulat CF font */
    --ag-font-family: 'Articulat CF', sans-serif;
    --ag-font-size: 14px;
    --ag-header-font-weight: 600;
    --ag-header-font-family: 'Articulat CF', sans-serif;
    --ag-header-font-size: 14px;
    --ag-grid-size: 8px; /* spacing parameter */
    
    /* Force table width to match image */
    width: 100%;
    box-sizing: border-box;
}

/* Invitation Styling */
.action-buttons {
  display: flex;
  align-items: center;
}

/* Styles for the input field next to ADD NEW button */
.invitation-input-container {
  margin-right: 10px;
}

.invitation-input {
  width: 300px;
  padding: 5px 10px;
  border: 1px solid #00000026;
  border-radius: 5px;
  font-family: 'Articulat CF', sans-serif;
  font-size: 14px;
  background-color: #f9f9f9;
}

.invitation-input:focus {
  outline: none;
  border-color: #3cff00;
  box-shadow: 0 0 5px rgba(60, 255, 0, 0.3);
}

/* Styles for the button and expandable area in header */
.invitation-container {
  position: relative;
  margin-right: 15px;
}

.invite-btn {
  background-color: #2f00ff !important;
  color: #fff !important;
  border: none;
  border-radius: 5px;
  padding: 12px 15px !important;
  font-family: 'Articulat CF', sans-serif;
  font-weight: 400;
  font-size: 18px !important;
  cursor: pointer;
  transition: all 0.25s ease;
  border-style: none !important;
}

.invite-btn:hover {
  background-color: #3cff00;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.invitation-expanded {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #00000026;
  border-radius: 5px;
  padding: 15px;
  width: 300px;
  z-index: 99999 !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-top: 5px;
}

/* Success message styling */
.invitation-success-message::placeholder {
  font-weight: bold !important;
  color: #000 !important;
}

.invitation-expanded textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #00000026;
  border-radius: 5px;
  font-family: 'Articulat CF', sans-serif;
  font-size: 14px;
  resize: vertical;
}

.close-invitation-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

.close-invitation-btn:hover {
  color: #000;
}
#invitationModal{
    z-index:9999999999 !important;
}

/* Invitation Sender Styles */
.invitation-results {
  margin-top: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  font-family: 'Articulat CF', sans-serif;
}

.invitation-error-header {
  color: #ff4444;
  font-weight: bold;
  margin-bottom: 5px;
}

.invitation-results-header {
  font-weight: bold;
  margin-bottom: 5px;
}

.invitation-error-list,
.invitation-results-list {
  list-style-type: none;
  padding-left: 5px;
  margin: 0;
}

.invitation-error-list li {
  color: #ff4444;
  margin-bottom: 3px;
}

.invitation-results-list li {
  margin-bottom: 3px;
}

.invitation-results-list li.success {
  color: #00b09b;
}

.invitation-results-list li.error {
  color: #ff4444;
}

.invitation-error-message {
  color: #ff4444;
  font-weight: bold;
}

.invitation-loading {
  display: flex;
  align-items: center;
  margin-top: 10px;
  display: none;
}

.invitation-loading .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #3cff00;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.invitation-send-button {
  background-color: #3cff00;
  color: #000;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  margin-top: 10px;
  font-family: 'Articulat CF', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.invitation-send-button:hover {
  background-color: #2f00ff;
  color: #fff;
  transform: scale(1.02);
}

.invite-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: #cccccc !important;
}

/* Make the invitation expanded area wider to accommodate results */
.invitation-expanded {
  width: 350px !important;
}

/* JCRTF™ Edit Button Styling */
.jcrtf-edit-button {
    width: 100%;
    border: none;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #00FFFF; /* Cyan color */
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-family: inherit;
    font-weight: normal;
    outline: none;
    padding: 8px 12px;
}

.jcrtf-edit-button:hover {
    background-color: #00CCCC; /* Darker cyan on hover */
}

/* JCRTF™ cell styling */
.jcrtf-cell {
    cursor: pointer;
}

/* Timeline-managed fields in AG Grid */
.timeline-managed-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 5px;
    border-radius: 4px;
    background-color: rgba(0, 123, 255, 0.05);
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.timeline-managed-field:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.timeline-managed-field span {
    opacity: 0.6;
    margin-left: 5px;
    transition: opacity 0.2s;
}

.timeline-managed-field:hover span {
    opacity: 1;
}

.timeline-managed-field.decision-day {
    background-color: rgba(106, 90, 205, 0.1);
}

.timeline-managed-field.decision-day:hover {
    background-color: rgba(106, 90, 205, 0.15);
}

.timeline-cell {
    padding: 0 !important;
}
