/* Panel Page Styles */

/* Loading & Error Containers */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    color: var(--text);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--secondary40);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    color: var(--text);
}

.error-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
    background: linear-gradient(145deg, var(--secondary30), var(--secondary40));
    border-radius: var(--border05);
    border: 1px solid rgba(255, 69, 58, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.error-icon {
    margin-bottom: 1rem;
}

.error-icon svg {
    color: #ff453a;
}

.error-content h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.error-content p {
    color: var(--text70);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border05);
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 162, 76, 0.28);
}

.btn-secondary {
    background: var(--secondary30);
    color: var(--text);
    border: 1px solid var(--secondary40);
}

.btn-secondary:hover {
    background: var(--secondary40);
    transform: translateY(-2px);
}

/* Debug Panel */
.debug-panel {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--secondary20);
    border-radius: var(--border05);
    border: 1px solid var(--secondary30);
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
}

.debug-panel h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.debug-line {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text70);
    margin: 0.25rem 0;
    word-break: break-word;
}

/* Debug Steam Info */
.debug-steam-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--secondary20);
    border-radius: 6px;
    border: 1px solid var(--secondary30);
}

.debug-steam-info details {
    color: var(--text70);
}

.debug-steam-info summary {
    cursor: pointer;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.debug-steam-info pre {
    background: var(--secondary10);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    overflow-x: auto;
    border: 1px solid var(--secondary40);
}

/* Panel Layout */
.panel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, var(--secondary30), var(--secondary40));
    border-radius: var(--border05);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 252, 241, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.user-avatar {
    position: relative;
    margin-right: 2rem;
}

.user-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg);
}

.status-indicator.online {
    background-color: #00d26a;
}

.welcome-content h1 {
    color: var(--text);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.welcome-content p {
    color: var(--text80);
    font-size: 1.1rem;
}

/* Section Headers */
.quick-actions h2, 
.user-details h2, 
.server-status h2, 
.steam-section h2,
.whitelist-section h2 {
    color: var(--text);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Server Status Styles */
.server-status {
    margin-bottom: 3rem;
}

.status-grid {
    display: grid;
    gap: 1.5rem;
}

.status-card {
    background: linear-gradient(145deg, var(--secondary30), var(--secondary40));
    border-radius: var(--border05);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(102, 252, 241, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary30);
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
}

.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
}

.status-dot.online {
    background-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background-color: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

.status-dot.checking {
    background-color: #FF9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
    animation: pulse 1s infinite;
}

.status-info {
    flex: 1;
}

.status-info h3 {
    color: var(--text);
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.status-text {
    color: var(--text80);
    margin: 0;
    font-size: 1rem;
}

.connect-btn {
    background-color: var(--primary);
    color: var(--bg);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--primary30);
}

.connect-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary40);
}

/* Quick Actions */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.action-card {
    background: linear-gradient(145deg, var(--secondary30), var(--secondary40));
    border-radius: var(--border05);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 252, 241, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary30);
}

.action-card.primary-action {
    background: linear-gradient(145deg, var(--primary30), var(--primary40));
    border: 1px solid var(--primary);
}

.action-card.primary-action:hover {
    box-shadow: 0 10px 25px var(--primary30);
}

.action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(102, 252, 241, 0.1);
    border-radius: 50%;
    color: var(--primary);
}

.action-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.action-card p {
    color: var(--text70);
    margin: 0;
}

/* User Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: linear-gradient(145deg, var(--secondary30), var(--secondary40));
    border-radius: var(--border05);
    padding: 1.5rem;
    border: 1px solid rgba(102, 252, 241, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detail-label {
    color: var(--text70);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.detail-value {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
}

.roles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.role-tag {
    background: var(--primary20);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Notification Styles */
.success-notification,
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
}

.success-content {
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.9), rgba(76, 175, 80, 0.8));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
    backdrop-filter: blur(10px);
}

.success-content svg {
    flex-shrink: 0;
}

.error-content {
    background: linear-gradient(145deg, rgba(244, 67, 54, 0.9), rgba(244, 67, 54, 0.8));
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(244, 67, 54, 0.3);
    backdrop-filter: blur(10px);
}

.error-content svg {
    flex-shrink: 0;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

/* Steam Section Styles */
.steam-section {
    margin-bottom: 3rem;
}

.steam-container {
    background: linear-gradient(145deg, var(--secondary30), var(--secondary40));
    border-radius: var(--border05);
    overflow: hidden;
    border: 1px solid rgba(102, 252, 241, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.steam-linked {
    padding: 2rem;
}

.steam-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.steam-avatar {
    position: relative;
}

.steam-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 3px solid #1b2838;
}

.platform-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: #1b2838;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #66b2ff;
}

.steam-info h3 {
    color: var(--text);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.steam-id, .steam-level {
    color: var(--text70);
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.steam-profile-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.steam-profile-link:hover {
    color: var(--primary80);
}

/* Steam Games */
.steam-games {
    border-top: 1px solid var(--secondary40);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.games-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--secondary40);
}

.games-header {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.refresh-games-btn {
    background: var(--secondary30);
    border: 1px solid var(--secondary40);
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--text70);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-games-btn:hover {
    background: var(--secondary40);
    color: var(--primary);
    border-color: var(--primary50);
}

.refresh-games-btn:active {
    transform: scale(0.95);
}

.game-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.game-status.owns {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.game-status.missing {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
}

.game-status.optional {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.game-ownership {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.game-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.game-status.owns .game-icon {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.game-status.missing .game-icon {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.game-status.optional .game-icon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.game-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-title {
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
}

.game-subtitle {
    color: var(--text70);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.games-loading {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text70);
    font-size: 0.9rem;
}

.loading-indicator svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Steam Unlinked Section */
.steam-unlinked {
    padding: 3rem 2rem;
    text-align: center;
}

.steam-prompt {
    max-width: 400px;
    margin: 0 auto;
}

.steam-icon {
    margin-bottom: 1.5rem;
    color: var(--text50);
}

.steam-text h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.steam-text p {
    color: var(--text80);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.steam-requirements {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text80);
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.req-icon {
    font-size: 1.2rem;
}

.req-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.steam-link-btn {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.steam-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.steam-link-btn:disabled {
    background: #2a2a2a;
    cursor: not-allowed;
}

.steam-info-note {
    font-size: 0.8rem;
    color: var(--text50);
    margin-top: 1rem;
}

/* Whitelist Section */
.whitelist-section {
    margin-bottom: 3rem;
}

.whitelist-container {
    background: linear-gradient(145deg, var(--secondary30), var(--secondary40));
    border-radius: var(--border05);
    overflow: hidden;
    border: 1px solid rgba(102, 252, 241, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    display: flex;
}

.whitelist-status {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.whitelist-apply {
    width: 100%;
}

.whitelist-status.approved {
    color: #4ade80;
}

.whitelist-status.pending {
    color: #fbbf24;
}

.whitelist-status.interview {
    color: #e1be7a;
}

.whitelist-status.rejected {
    color: #f87171;
}

/* Requirement Warning */
.requirement-warning {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.warning-icon {
    color: #ff9800;
    flex-shrink: 0;
}

.warning-content h3 {
    color: #ff9800;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.warning-content p {
    color: var(--text80);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Connect Server Button */
.connect-server-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--primary);
    color: var(--bg);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.connect-server-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 162, 76, 0.35);
}

/* Discord Contact Button */
.discord-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #c62828;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.discord-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(198, 40, 40, 0.35);
    color: white;
}

/* Whitelist Form */
.whitelist-form-container {
    padding: 1rem 0;
    max-width: 100%;
}

.form-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-header p {
    color: var(--text70);
}

.whitelist-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text80);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--secondary40);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary20);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.form-checkbox label {
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
}

.rules-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rules-link:hover {
    color: var(--primary80);
    text-decoration: underline;
}

/* Enhanced Whitelist Form Styles */
.whitelist-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(145deg, var(--secondary30), var(--secondary40));
    border-radius: 12px;
    border: 1px solid rgba(102, 252, 241, 0.1);
}

.form-header h3 {
    color: var(--text);
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.form-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    border-radius: 2px;
}

.form-header p {
    color: var(--text70);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--secondary40);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.2rem;
    background: var(--primary);
    border-radius: 2px;
}

.section-description {
    color: var(--text70);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text80);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group small {
    color: var(--text60);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.situation-description {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 6px 6px 0;
}

.situation-description p {
    color: var(--text80);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-group input[type="number"] {
    max-width: 120px;
}

.checkbox-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--secondary30);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.checkbox-label a:hover {
    border-bottom-color: var(--primary);
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--secondary40);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    border: none;
    color: var(--bg);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 252, 241, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 162, 76, 0.35);
}

.submit-btn:disabled {
    background: var(--secondary40);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner.small {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Multi-Step Form Styles */
.stepper-container {
    margin-bottom: 3rem;
    padding: 2rem 1rem;
}

.stepper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step:hover:not(.disabled) .step-number {
    transform: scale(1.05);
}

.step.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--secondary40);
    color: var(--text70);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg);
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 252, 241, 0.15);
}

.step.completed .step-number {
    background: #28a745;
    border-color: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.step.disabled .step-number {
    border-color: var(--secondary30);
    color: var(--text30);
}

.step-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text70);
    text-align: center;
    transition: color 0.3s ease;
    max-width: 120px;
    line-height: 1.3;
}

.step.active .step-title {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-title {
    color: #28a745;
    font-weight: 600;
}

.step.disabled .step-title {
    color: var(--text30);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    color: var(--text70);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;    border: 2px solid var(--secondary40);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-bar {
    width: 80%;
    height: 3px;
    background: var(--secondary30);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    margin-top: 1rem;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00b4d8);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Multi-step form layout */
.multi-step-form {
    max-width: 800px;
    margin: 0 auto;
}

.step-content {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.step-section {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInStep 0.4s ease forwards;
    position: relative;
}

.step-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00b4d8);
    border-radius: 3px 3px 0 0;
    opacity: 0.8;
}

.step-section.active {
    opacity: 1;
    transform: translateX(0);
}

@keyframes slideInStep {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Navigation */
.form-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--secondary30);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.nav-btn:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.prev-btn {
    background: var(--secondary30);
    color: var(--text);
    border: 1px solid var(--secondary40);
}

.prev-btn:hover:not(:disabled) {
    background: var(--secondary40);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.next-btn {
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    color: var(--bg);
    box-shadow: 0 4px 15px rgba(102, 252, 241, 0.2);
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 162, 76, 0.35);
}

.next-btn:disabled, .prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

.step-indicator {
    background: var(--secondary20);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text70);
    border: 1px solid var(--secondary30);
    font-weight: 500;
}

/* Enhanced form sections for multi-step */
.step-section .form-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--secondary30);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.step-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-section .section-title::before {
    width: 6px;
    height: 1.5rem;
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    border-radius: 3px;
}

.step-section .section-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text80);
    line-height: 1.5;
}

/* Enhanced form inputs for multi-step */
.step-section input,
.step-section textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--secondary30);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.step-section input:focus,
.step-section textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 252, 241, 0.1);
}

.step-section input:valid,
.step-section textarea:valid {
    border-color: #28a745;
}

.step-section .form-group {
    margin-bottom: 1.5rem;
}

.step-section .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.step-section .form-group small {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text60);
    display: block;
}

/* Responsive design for multi-step form */
@media (max-width: 768px) {
    .stepper-container {
        padding: 1.5rem 1rem;
    }
    
    .stepper {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
    }

    
    .step {
        flex-direction: row;
        max-width: 100%;
        padding: 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--secondary30);
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .step-title {
        text-align: left;
        font-size: 0.9rem;
        max-width: none;
    }
    
    .progress-bar {
        width: 90%;
        margin-top: 1.5rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 100%;
        min-width: auto;
    }
    
    .step-indicator {
        order: -1;
        align-self: center;
    }
    
    .step-section .form-section {
        padding: 1.5rem;
    }
    
    .step-section .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .stepper-container {
        padding: 1rem;
    }
    
    .step-section .form-section {
        padding: 1rem;
    }
    
    .step-section .section-title {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Additional enhancements */
.multi-step-form .situation-description {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.multi-step-form .situation-description::before {
    content: '💭';
    position: absolute;
    top: 0.75rem;
    left: -2px;
    background: var(--primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.multi-step-form .checkbox-group {
    background: rgba(102, 252, 241, 0.05);
    border: 2px solid var(--primary20);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* Enhanced Visual Effects */
.step {
    position: relative;
}

.step:last-child::before {
    display: none;
}

.step.completed::before {
    background: #28a745;
}

.step.active::before {
    background: linear-gradient(90deg, var(--primary), var(--secondary40));
}

/* Improved step hover effects */
.step:not(.disabled):hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 162, 76, 0.28);
}

.step.completed:hover .step-number {
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

/* Enhanced form animations */
.step-section {
    position: relative;
}

.step-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00b4d8);
    border-radius: 3px 3px 0 0;
    opacity: 0.8;
}

/* Better button interactions */
.nav-btn {
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.nav-btn:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

/* Improved progress bar */
.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0) 100%);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Form validation visual feedback */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Situation descriptions enhancement */
.situation-description {
    position: relative;
    overflow: hidden;
}

.situation-description::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), rgba(212, 162, 76, 0.28));
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Character counter enhancements */
.form-group textarea + small {
    position: relative;
    padding-left: 1rem;
}

.form-group textarea + small::before {
    content: '📝';
    position: absolute;
    left: 0;
    top: 0;
}

/* Improved checkbox styling */
.checkbox-group {
    position: relative;
}

.checkbox-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 252, 241, 0.05) 0%, 
        rgba(102, 252, 241, 0.02) 100%);
    border-radius: 8px;
    pointer-events: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .step::before {
        display: none;
    }
    
    .stepper {
        position: relative;
    }
    
    .stepper::after {
        content: '';
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, var(--secondary40), transparent);
    }
}

/* Additional polish for form sections */
.multi-step-form .form-section {
    position: relative;
    overflow: hidden;
}

.multi-step-form .form-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(102, 252, 241, 0.2) 50%, 
        transparent 100%);
}

/* Enhanced animations and transitions */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.animate-on-scroll.delay-150 { animation-delay: 0.15s; }
.animate-on-scroll.delay-300 { animation-delay: 0.3s; }
.animate-on-scroll.delay-450 { animation-delay: 0.45s; }
.animate-on-scroll.delay-600 { animation-delay: 0.6s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover effects for cards */
.detail-card,
.action-card,
.status-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-card:hover,
.action-card:hover,
.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.detail-card::before,
.action-card::before,
.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 252, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.detail-card:hover::before,
.action-card:hover::before,
.status-card:hover::before {
    left: 100%;
}

/* Floating labels effect */
.form-group {
    position: relative;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-25px) scale(0.9);
    color: var(--primary);
}

/* Enhanced button hover effects */
.nav-btn {
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.nav-btn:hover::before {
    width: 200px;
    height: 200px;
}

/* Improved success and error notifications */
.success-notification,
.error-notification {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: slideInNotification 0.4s ease;
}

@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.step {
    z-index: 2;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1rem 0.5rem;
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary30);
}

.step.active {
    background: rgba(102, 252, 241, 0.1);
    border-color: var(--primary);
}

.step.completed {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

/* Pulse animation for active step */
.step.active .step-number {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 252, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(102, 252, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 252, 241, 0); }
}

/* Enhanced form inputs with focus glow */
.step-section input:focus,
.step-section textarea:focus {
    animation: focusGlow 0.3s ease;
}

@keyframes focusGlow {
    0% { box-shadow: 0 0 0 0 rgba(102, 252, 241, 0); }
    100% { box-shadow: 0 0 0 3px rgba(102, 252, 241, 0.1); }
}

/* Improved loading spinner with gradient */
.loading-spinner {
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent);
    border: none;
    mask: radial-gradient(circle, transparent 45%, white 50%);
    -webkit-mask: radial-gradient(circle, transparent 45%, white 50%);
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary20);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), #00b4d8);
    border-radius: 4px;
    border: 1px solid var(--secondary30);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary80), #0099c7);
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
    .animate-on-scroll {
        animation-delay: 0s !important;
    }
    
    .detail-card:hover,
    .action-card:hover,
    .status-card:hover {
        transform: none;
    }
    
    .step:hover {
        background: rgba(255, 255, 255, 0.02);
        border-color: transparent;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .stepper-container {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .step-section .form-section {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

