:root {
    --celestial-dark: #f3f4f6; /* Gray-100 */
    --celestial-blue: #6b7280; /* Gray-500 */
    --celestial-blue-dark: #374151; /* Gray-700 */
    --celestial-accent: #9ca3af; /* Gray-400 */
    --celestial-text: #1f2937; /* Gray-800 */
    --celestial-border: rgba(0, 0, 0, 0.1);
    --celestial-card-bg: #ffffff;
}

body {
    background-color: var(--celestial-dark);
    background-image: url('../image/fondoini.webp');
    background-attachment: scroll;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    color: var(--celestial-text);
    overflow-x: hidden;
}

/* Navbar */
.celestial-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--celestial-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-link {
    color: var(--celestial-blue-dark);
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover {
    color: var(--celestial-blue);
    text-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Hero */
.hero-section {
    position: relative;
    background: transparent;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Responsive: reduce hero height on small screens */
@media (max-width: 767.98px) {
    .hero-section {
        height: 100px;
    }
}

.hero-title {
    font-family: 'Philosopher', serif;
    font-size: 4rem;
    color: var(--celestial-blue-dark);
    text-shadow: 0 0 20px rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--celestial-blue);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.btn-celestial {
    background: linear-gradient(45deg, var(--celestial-blue-dark), var(--celestial-blue));
    color: white;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid var(--celestial-accent);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.btn-celestial:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, var(--celestial-blue), var(--celestial-accent));
    color: var(--celestial-blue-dark);
}

/* Cards / Boxes */
.celestial-box {
    background: var(--celestial-card-bg);
    border: 1px solid var(--celestial-border);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.celestial-box-header {
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 100%);
    padding: 10px 15px;
    border-bottom: 1px solid var(--celestial-border);
    border-radius: 4px 4px 0 0;
    color: var(--celestial-blue-dark);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.celestial-box-content {
    padding: 15px;
}

/* Inputs */
.celestial-input {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #1f2937;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 3px;
    transition: border 0.3s;
}

.celestial-input:focus {
    border-color: var(--celestial-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2);
}

/* Footer */
.celestial-footer {
    background: #e5e7eb; /* Gray-200 */
    border-top: 1px solid var(--celestial-border);
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
    color: #4b5563; /* Gray-600 */
}

/* UserCP Styles (Neo Panel converted to Light/Gray) */
.neo-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.neo-panel::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.neo-panel > * {
    position: relative;
    z-index: 1;
}

.neo-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.neo-sub {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.neo-grid {
    display: grid;
    gap: 1rem;
}

.neo-action {
    display: block;
    border-radius: 16px;
    padding: 1rem;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
}

.neo-action:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.05),
        inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.neo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
    transition: transform 0.3s ease;
    backdrop-filter: blur(4px);
}

.neo-action:hover .neo-icon {
    transform: scale(1.1) rotate(6deg);
}

/* Updated Icon colors for light theme compatibility if needed, or keep as is */
.icon-orange { background: rgba(251, 146, 60, 0.1); color: #ea580c; border: 1px solid rgba(251, 146, 60, 0.2); }
.icon-green  { background: rgba(52, 211, 153, 0.1); color: #059669; border: 1px solid rgba(52, 211, 153, 0.2); }
.icon-cyan   { background: rgba(34, 211, 238, 0.1); color: #0891b2; border: 1px solid rgba(34, 211, 238, 0.2); }
.icon-pink   { background: rgba(244, 114, 182, 0.1); color: #db2777; border: 1px solid rgba(244, 114, 182, 0.2); }
.icon-purple { background: rgba(167, 139, 250, 0.1); color: #7c3aed; border: 1px solid rgba(167, 139, 250, 0.2); }
.icon-red    { background: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2); }
.icon-blue   { background: rgba(59, 130, 246, 0.1); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.2); }
.icon-yellow { background: rgba(234, 179, 8, 0.1); color: #ca8a04; border: 1px solid rgba(234, 179, 8, 0.2); }

.neo-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.neo-section:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0,0,0,0.1);
}

.neo-panel .font-semibold { font-size: 14px; font-weight: 600; letter-spacing: 0.3px; color: #374151; }

.neo-table th {
    background: rgba(0, 0, 0, 0.02);
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.neo-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s;
}
.neo-table tr:last-child { border-bottom: none; }
.neo-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}
.neo-table td {
    color: #4b5563;
}

.neo-btn-logout {
    background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.neo-btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    filter: brightness(1.2);
}

.neo-modal {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2) !important;
    color: #1f2937;
}

.neo-input {
    width: 100%;
}

/* Animations for Header Logo */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.sparkle {
    position: absolute;
    background: #6b7280;
    border-radius: 50%;
    box-shadow: 0 0 5px #9ca3af, 0 0 10px #d1d5db;
    opacity: 0;
    animation: sparkle-fade ease-in-out infinite;
}

@keyframes sparkle-fade {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}
