/* UI Components */

/* Buttons */
.btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary);
    font-weight: 500;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    background: transparent;
    color: var(--primary-light);
    box-shadow: 0 0 10px rgba(93, 63, 211, 0.1);
}

.btn:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-main);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: var(--shadow-glow);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(93, 63, 211, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.form-row {
    display: flex;
    gap: var(--spacing-sm);
}

.form-row>.form-group {
    flex: 1;
}

.date-inputs,
.time-inputs,
.geo-inputs {
    display: flex;
    gap: var(--spacing-xs);
}

.date-inputs input,
.geo-inputs input {
    flex: 1;
    min-width: 0;
}

/* Cards */
/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.member-card__header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.member-card__header h3 {
    font-size: 1.1rem;
    color: var(--primary-light);
    font-family: var(--font-heading);
}

/* Tabs */
.tabs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tabs {
    display: flex;
}

.tab {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.tab.active {
    color: var(--primary-light);
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Info Panels */
.info-panels {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
    font-size: 0.9rem;
}

.info-item.full {
    grid-column: 1 / -1;
}

.planet-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.planet-list {
    margin-top: var(--spacing-sm);
}

.planet-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.planet-symbol {
    font-weight: bold;
    color: var(--primary-light);
}

/* JSON Viewer */
.json-viewer {
    max-height: 400px;
    overflow-y: auto;
}

.json-viewer pre {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Year Input */
.year-input-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
}

.year-input-group input {
    width: 80px;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-md);
}

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

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    color: white;
    box-shadow: var(--shadow-md);
    min-width: 250px;
    animation: slideIn 0.3s ease-out;
}

.toast-error {
    background-color: var(--color-error);
}

.toast-info {
    background-color: var(--color-primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .planet-columns {
        grid-template-columns: 1fr;
    }
}

/* Pro Max Styles from profile_manager.html */
.input-glow {
    position: relative;
    transition: all 0.3s ease;
}

.input-glow:focus-within {
    box-shadow: 0 0 15px -3px rgba(192, 165, 84, 0.3);
    border-color: var(--primary);
}

.input-glow input:focus {
    border-color: var(--primary);
    box-shadow: none;
    /* Handled by container */
}

/* Gradient Text / Borders */
.bg-gradient-gold {
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

/* Utilities (Tailwind-like mappings) */
.bg-surface-dark {
    background-color: var(--bg-panel);
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-primary\/5 {
    background-color: rgba(192, 165, 84, 0.05);
}

.bg-primary\/10 {
    background-color: rgba(192, 165, 84, 0.1);
}

.bg-primary\/20 {
    background-color: rgba(192, 165, 84, 0.2);
}

.bg-field-dark {
    background-color: rgba(0, 0, 0, 0.2);
}

.text-primary {
    color: var(--primary);
}

.text-white {
    color: var(--text-main);
}

.text-gray-200 {
    color: #e5e7eb;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-serif {
    font-family: 'Noto Serif', serif;
}

.font-display {
    font-family: 'Manrope', sans-serif;
}

.rounded-lg {
    border-radius: var(--radius-md);
}

.rounded-xl {
    border-radius: var(--radius-lg);
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border-width: 1px;
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-primary\/30 {
    border-color: rgba(192, 165, 84, 0.3);
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.space-y-1>*+* {
    margin-top: 0.25rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.hidden {
    display: none;
}

.w-full {
    width: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

.shadow-lg {
    box-shadow: var(--shadow-card);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Material Symbols fix */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}