/* General Container */
:root {
    --purple-pop: #7b247f;
    --purple-mid: #b15dc0;
}

.act-container { max-width: 1000px; margin: 40px auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; padding: 0 20px; }

/* Dashboard Table */
.act-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 2px solid #eee; padding-bottom: 20px; }
.act-filters { display: flex; gap: 15px; }
.act-filters select, .act-filters input { padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }

.act-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; }
.act-table th, .act-table td { padding: 15px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.act-table th { background: #f8f9fa; font-weight: 700; color: #333; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
.act-table tr:hover { background-color: #fcfcfc; }

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}
.sortable { cursor: pointer; position: relative; padding-right: 25px !important; transition: background-color 0.2s; }
.sortable:hover { background-color: #f0f0f0; }
.sortable::after { content: "↕"; position: absolute; right: 8px; opacity: 1; color: #666; font-size: 16px; font-weight: normal; }
.sortable.asc::after { content: "↑"; color: var(--purple-pop); font-weight: bold; }
.sortable.desc::after { content: "↓"; color: var(--purple-pop); font-weight: bold; }

/* Application Detail View */
.application-detail { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid #eee; margin-top: 0; }
.application-detail h2 { margin-top: 0; font-size: 32px; color: #1a1a1a; border-bottom: 3px solid #0073aa; padding-bottom: 10px; margin-bottom: 30px; }

/* Prominent Status Box */
.status-box-prominent { background: #f0f6fb; padding: 25px; border-radius: 8px; border-left: 6px solid #0073aa; margin-bottom: 30px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.status-box-prominent label { font-weight: 700; font-size: 18px; color: #0073aa; text-transform: uppercase; }
.status-box-prominent select { padding: 12px 20px; font-size: 16px; font-weight: 600; border: 2px solid #0073aa; border-radius: 6px; background: #fff; min-width: 200px; cursor: pointer; }

/* Score Inputs */
.score-inputs-wrapper { display: flex; gap: 20px; align-items: center; }
.score-field label { display: block; font-size: 14px; text-transform: uppercase; color: #0073aa; font-weight: 700; margin-bottom: 5px; }
.score-field {text-align: center;}
.score-field span.score-display { display: block; font-size: 20px; font-weight: 700; color: #333; padding: 5px 0; }

/* Action Buttons */
.action-buttons { display: flex; gap: 15px; align-items: center; }
.act-btn { display: inline-block; padding: 12px 24px; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; border-radius: 6px; cursor: pointer; border: none; transition: all 0.2s ease; line-height: 1.4; background-color: var(--purple-mid); color: white !important; box-shadow: 0 4px 0 var(--purple-pop); }
.act-btn:hover { background-color: var(--purple-pop); transform: translateY(-1px); }
.act-btn:active { transform: translateY(2px); box-shadow: none; }

.act-btn-primary { background-color: var(--purple-mid); color: white !important; box-shadow: 0 4px 0 var(--purple-pop); }
.act-btn-primary:hover { background-color: var(--purple-pop); }

.act-btn-secondary { background-color: var(--purple-mid); color: white !important; box-shadow: 0 4px 0 var(--purple-pop); }
.act-btn-secondary:hover { background-color: var(--purple-pop); }

.act-btn:disabled { background-color: #ccc !important; box-shadow: none !important; cursor: not-allowed; transform: none !important; color: #666 !important; }

/* Detail Sections */
.detail-section { margin-bottom: 35px; }
.detail-section h3 { font-size: 20px; color: #333; margin-bottom: 15px; display: flex; align-items: center; }
.detail-section h3::after { content: ""; flex-grow: 1; height: 1px; background: #eee; margin-left: 15px; }
.text-area-display { background: #f9f9f9; padding: 20px; border-radius: 8px; border: 1px solid #e0e0e0; line-height: 1.8; color: #444; text-align: left; }
.text-area-display label { font-weight: 700; color: #333; display: inline-block; min-width: 150px; margin-right: 10px; }
.text-area-display span { color: #444; }
.info-field { margin-bottom: 10px; display: flex; align-items: flex-start; }
.info-field-group { margin-top: 20px; border-top: 1px solid #eee; padding-top: 20px; }
.info-field-group:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.info-field:last-child { margin-bottom: 0; }
.essay-content { line-height: 1.8; color: #333; font-size: 16px; background: #fff; padding: 20px; border: 1px solid #eee; border-radius: 8px; text-align: left; }

/* Faculty Notes / Comments */
.faculty-notes-section { background: #fafafa; padding: 30px; border-radius: 10px; border: 1px solid #eee; margin-top: 50px; }
.faculty-note { background: #fff; padding: 15px 20px; margin-bottom: 15px; border-radius: 8px; border-left: 4px solid #fbc02d; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.faculty-note strong { color: #333; font-size: 14px; }
.faculty-note p { margin: 10px 0; color: #555; }
.faculty-note small { color: #999; font-size: 12px; }

#new-faculty-note { width: 100%; height: 120px; padding: 15px; border: 2px solid #ddd; border-radius: 8px; font-size: 15px; margin-bottom: 15px; transition: border-color 0.2s; }
#new-faculty-note:focus { border-color: #0073aa; outline: none; }

#save-note { background-color: var(--purple-mid); color: white !important; padding: 12px 25px; border-radius: 6px; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 4px 0 var(--purple-pop); }
#save-note:hover { background-color: var(--purple-pop); }

/* Round Badge for Faculty */
.faculty-round-badge {
    background: #e3f2fd;
    border-left: 6px solid #1976d2;
}
.faculty-round-badge label {
    color: #1976d2;
}

/* Bulk Actions */
.act-bulk-actions {
    display: flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Notices */
.act-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}
.act-notice-success {
    background-color: #e7f4e9;
    color: #1e7e34;
    border-left: 4px solid #28a745;
}
.act-notice-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}
@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.checkbox-col {
    width: 40px;
    text-align: center !important;
}
.checkbox-col input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Score Filters */
.score-filters select, .score-filters input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* Note Score Badge */
.note-score-badge {
    display: inline-block;
    margin-left: 10px;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #bbdefb;
}

/* Scored Column */
td.scored-col {
    padding-left: 2.1em;
}

/* Login Form Specifics */
#act-login-form { margin-top: 20px; }
#act-login-form p { margin-bottom: 15px; }
#act-login-form label { display: block; margin-bottom: 5px; font-weight: 600; color: #333; }
#act-login-form input[type="text"], 
#act-login-form input[type="password"] { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; }
#act-login-form input[type="submit"] { 
    background-color: var(--purple-mid); 
    color: white; 
    padding: 12px 25px; 
    border-radius: 6px; 
    font-weight: 700; 
    border: none; 
    cursor: pointer; 
    box-shadow: 0 4px 0 var(--purple-pop); 
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.2s ease;
}
#act-login-form input[type="submit"]:hover { background-color: var(--purple-pop); transform: translateY(-1px); }
#act-login-form input[type="submit"]:active { transform: translateY(2px); box-shadow: none; }
.login-remember { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #666; }
.login-remember input { margin: 0; }
.login-lost-password { text-align: center; margin-top: 15px; }
.login-lost-password a { color: #666; font-size: 14px; text-decoration: none; }
.login-lost-password a:hover { text-decoration: underline; }

.login-submit {
    margin-bottom: 15px !important;
}

/* My Account Specifics */
#act-profile-form .status-box-prominent { background-color: #fff; border: 1px solid #eee; border-left: 6px solid #0073aa; }
#act-profile-form input { transition: border-color 0.2s; }
#act-profile-form input:focus { border-color: #0073aa; outline: none; }
