/* Buttons (Pill shaped) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--rounded-button);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--effects-transition);
    border: 1px solid transparent;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--color-green-accent);
    color: #fff;
    border-color: var(--color-green-accent);
}

.btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--color-green-accent);
    color: var(--color-green-accent);
}

.btn-secondary:hover {
    background: rgba(0, 117, 74, 0.05);
}

.btn-text-only {
    background: transparent;
    border: 1.5px solid var(--color-text-primary);
    color: var(--color-text-primary);
}

.btn-text-only:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* FAB Floating Action Button ("Frap" button style) */
.frap-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-green-accent);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.24), 0 8px 12px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    z-index: 99;
    transition: var(--effects-transition);
    display: none;
    /* Visible for admin/staff only */
}

.frap-btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.28), 0 10px 16px rgba(0, 0, 0, 0.18);
}

.frap-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.24), 0 8px 12px rgba(0, 0, 0, 0);
}

.frap-btn svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

/* Filter Pills */
.filter-pill {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 6px 16px;
    border-radius: var(--rounded-button);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--effects-transition);
}

.filter-pill:hover {
    color: var(--color-text-primary);
    border-color: var(--color-text-muted);
}

.filter-pill:active {
    transform: scale(0.95);
}

.filter-pill.active {
    background: var(--color-green-accent);
    border-color: var(--color-green-accent);
    color: #ffffff;
}

/* Dropdown Select */
.dropdown-select {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: var(--effects-transition);
}

.dropdown-select:focus {
    border-color: var(--color-green-accent);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* Profile Cards */
.employee-card {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--effects-transition);
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--effects-shadow);
}

.employee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--color-green-accent);
}

/* Gold status card styling (Premium Star Candidates) */
.employee-card.gold-tier-card {
    border: 1px solid var(--color-gold);
    background: var(--color-gold-lightest);
}

.employee-card.gold-tier-card:hover {
    box-shadow: 0 10px 25px -5px rgba(203, 162, 88, 0.25);
    border-color: var(--color-gold);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-md);
}

.avatar-container {
    position: relative;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-ceramic);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-script);
    font-weight: 700;
    font-size: 22px;
    color: var(--color-primary);
}

.gold-avatar {
    background: var(--color-gold) !important;
    color: #ffffff !important;
    border-color: var(--color-gold-lightest) !important;
    box-shadow: 0 4px 10px rgba(203, 162, 88, 0.3);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.status-dot.ready {
    background-color: var(--color-success);
}

.status-dot.hired {
    background-color: var(--color-danger);
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.employee-name {
    font-family: var(--font-family-script);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}

.role-badge {
    background: rgba(0, 98, 65, 0.08);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: var(--rounded-badge);
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.gold-badge {
    background: var(--color-gold);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: var(--rounded-badge);
    font-size: 10px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(203, 162, 88, 0.2);
}

.card-body {
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.info-label {
    color: var(--color-text-muted);
}

.info-val {
    font-weight: 600;
    color: var(--color-text-primary);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}

.skill-tag {
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.card-footer {
    border-top: 1px solid var(--color-ceramic);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-pill {
    padding: 4px 12px;
    border-radius: var(--rounded-badge);
    font-size: 11px;
    font-weight: 700;
}

.status-pill.ready {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.status-pill.hired {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.view-profile-link {
    font-size: 12px;
    color: var(--color-green-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--effects-transition);
}

.view-profile-link:hover {
    color: var(--color-primary);
    transform: translateX(2px);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 57, 50, 0.4);
    /* House Green base dark overlay */
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--effects-transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 100%;
    max-width: 520px;
    margin: var(--spacing-md);
    padding: var(--spacing-lg);
    transform: scale(0.95);
    transition: var(--effects-transition);
    border-radius: var(--rounded-card);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-ceramic);
    padding-bottom: var(--spacing-sm);
}

.modal-header h3 {
    font-family: var(--font-family-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: var(--effects-transition);
}

.modal-close:hover {
    color: var(--color-primary);
}

/* Modal Details Content */
.modal-avatar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: var(--spacing-lg);
}

.modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-ceramic);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-script);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    border: 3px solid #ffffff;
    box-shadow: var(--effects-shadow);
}

.modal-title-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.modal-title-info h2 {
    font-family: var(--font-family-script);
    font-size: 28px;
    color: var(--color-primary);
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: var(--spacing-lg);
}

.detail-card {
    background: var(--color-ceramic);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-sm) var(--spacing-md);
}

.detail-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.skills-container {
    margin-bottom: var(--spacing-lg);
}

.skills-container h4 {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.large-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.large-skill-tag {
    background: rgba(0, 117, 74, 0.06);
    border: 1px solid rgba(0, 117, 74, 0.15);
    color: var(--color-green-accent);
    padding: 4px 12px;
    border-radius: var(--rounded-badge);
    font-size: 12px;
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--color-text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--effects-transition);
}

.form-control:focus {
    border-color: var(--color-green-accent);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 32px;
    left: 32px;
    background: var(--color-house-green);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    z-index: 2000;
    transition: var(--effects-transition);
    font-weight: 600;
    font-size: 14px;
    border-left: 4px solid var(--color-gold);
    /* Gold status stripe */
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}
