:root {
    --blue-dark: #047bf3;
    --blue-main: #00bfff;
    --blue-darker: #0056b3;
    --blue-accent: #00ffff;
    --blue-text: #e0e0e0;
    --blue-border: rgba(0, 191, 255, 0.3);
    --blue-card-bg: #ffffff;
    --panel-text: #0056b3;
    --panel-text-muted: #557799;
}

body {
    background-color: var(--blue-dark);
    background-image: url('../image/fondoini.webp');
    background-attachment: scroll;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    color: var(--blue-text);
}

/* Navbar */
.blue-nav {
    background: rgba(4, 123, 243, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--blue-border);
}

.nav-link {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover {
    color: var(--blue-accent);
    text-shadow: 0 0 10px var(--blue-accent);
}

/* Hero */
.hero-section {
    position: relative;
    background: transparent;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    font-family: 'Philosopher', serif;
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 20px var(--blue-main);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--blue-accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.btn-blue {
    background: linear-gradient(45deg, var(--blue-darker), var(--blue-main));
    color: white;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid var(--blue-accent);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
    transition: all 0.3s;
}

.btn-blue:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.8);
    background: linear-gradient(45deg, var(--blue-main), var(--blue-accent));
}

/* Cards / Boxes */
.blue-box {
    background: var(--blue-card-bg);
    border: 1px solid var(--blue-main);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--panel-text);
}

.blue-box-header {
    background: linear-gradient(90deg, var(--blue-darker) 0%, var(--blue-main) 100%);
    padding: 10px 15px;
    border-bottom: 1px solid var(--blue-main);
    border-radius: 4px 4px 0 0;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.blue-box-content {
    padding: 15px;
}

.blue-box-content .text-gray-400,
.blue-box-content .text-gray-300,
.blue-box-content .text-gray-500 {
    color: var(--panel-text-muted) !important;
}

.blue-box-content .text-white,
.blue-box-content .text-gray-200 {
    color: var(--panel-text) !important;
}

.blue-box-content h3.text-white {
    color: var(--panel-text) !important;
}

.blue-box-content .text-[#ffd700],
.blue-box-content .text-yellow-400 {
    color: #b8860b !important; /* Dark golden for better visibility on white */
}

.blue-box-content .bg-gray-800 {
    background-color: #e0e7ff !important;
}

.blue-box-content .divide-gray-800 {
    border-color: rgba(0, 191, 255, 0.1) !important;
}

.blue-box-content .border-gray-800,
.blue-box-content .border-white\/5 {
    border-color: rgba(0, 191, 255, 0.1) !important;
}

.blue-box-content tr.hover\:bg-white\/5:hover {
    background-color: rgba(0, 191, 255, 0.05) !important;
}

.blue-box-content article.bg-black\/30 {
    background-color: #f8fbff !important;
    border-color: rgba(0, 191, 255, 0.1) !important;
}

.blue-box-content .text-[#00bfff],
.blue-box-content .text-cyan-400 {
    color: var(--blue-darker) !important;
}

.blue-box-content .text-red-400 {
    color: #cc0000 !important;
}

.blue-box-content .text-green-400,
.blue-box-content .text-green-500 {
    color: #008000 !important;
}

.blue-box-content article.bg-black\/30:hover {
    background-color: #ffffff !important;
    border-color: var(--blue-main) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Inputs */
.blue-input {
    background: #f8fbff;
    border: 1px solid var(--blue-main);
    color: var(--panel-text);
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 3px;
    transition: all 0.3s;
}

.blue-input::placeholder {
    color: var(--panel-text-muted);
    opacity: 0.7;
}

.blue-input:focus {
    border-color: var(--blue-darker);
    background: #ffffff;
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.2);
    outline: none;
}

/* Footer */
.blue-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
    color: #1e293b;
}

.blue-footer h4 {
    color: #0f172a !important;
    font-weight: 800;
}

.blue-footer a {
    color: #007bff;
    transition: color 0.3s;
}

.blue-footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.blue-footer p, 
.blue-footer li, 
.blue-footer span {
    color: #475569 !important; /* Slate gray for readability on white */
}

.blue-footer .border-t {
    border-color: #f1f5f9 !important;
}

/* UserCP Styles */
.blue-panel {
    background: #ffffff;
    border: 1px solid var(--blue-main);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    overflow: hidden;
    color: var(--panel-text);
}

.blue-panel .blue-title {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--blue-darker);
    font-weight: 800;
}

.blue-panel .blue-sub {
    color: var(--panel-text-muted);
}

.blue-action {
    display: block;
    border-radius: 12px;
    padding: 1rem;
    background: #f0f7ff;
    border: 1px solid var(--blue-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
    color: var(--panel-text);
}

.blue-action:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: var(--blue-darker);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.2);
}

.blue-action .font-semibold {
    color: var(--blue-darker) !important;
}

.blue-section {
    background: #f8fbff;
    border-radius: 12px;
    border: 1px solid rgba(0, 191, 255, 0.1);
    transition: all 0.2s;
    color: var(--panel-text);
}

.blue-section:hover {
    background: #ffffff;
    border-color: var(--blue-main);
}

.blue-panel .font-semibold { 
    font-size: 14px; 
    font-weight: 600; 
    letter-spacing: 0.3px; 
    color: var(--panel-text); 
}

.blue-table th {
    background: #f0f7ff;
    color: var(--blue-darker);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--blue-main);
}
.blue-table tr {
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    transition: background 0.2s;
}
.blue-table tr:last-child { border-bottom: none; }
.blue-table tr:hover {
    background: rgba(0, 191, 255, 0.05);
}
.blue-table td {
    color: var(--panel-text);
    padding: 12px 8px;
}

.blue-btn-logout {
    background: linear-gradient(135deg, #0056b3 0%, #004085 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);
}
.blue-btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 86, 179, 0.4);
    filter: brightness(1.2);
}

.blue-modal {
    background: #ffffff !important;
    backdrop-filter: blur(16px);
    border: 1px solid var(--blue-main) !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2) !important;
    color: var(--panel-text);
}

.blue-modal .text-white,
.blue-modal .text-gray-400 {
    color: var(--panel-text) !important;
}

.blue-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: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff, 0 0 10px #00bfff;
    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); }
}
