/* Loader Animation */
.loader {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
}

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

/* Disabled Buttons */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: rgba(4, 13, 26, 0.95);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success i { color: #10B981; }
.toast-error i { color: #EF4444; }

/* Auth Layouts */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px 24px;
    position: relative;
    overflow: hidden;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    z-index: 2;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Dashboard Layout */
.dashboard-page {
    padding-top: 120px;
    min-height: 100vh;
}

.dashboard-header {
    margin-bottom: 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.dashboard-header h1 {
    font-size: 2.5rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .dashboard-cards { grid-template-columns: 1fr; }
    .dashboard-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Input validation feedback */
.form-control:valid {
    border-color: rgba(16, 185, 129, 0.5);
}

.form-group input:not(:placeholder-shown):invalid {
    border-color: rgba(239, 68, 68, 0.5);
}
