/* Importuojame modernų ir profesionalų šriftą iš Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- TEMOS KINTAMIEJI (VARIABLES) --- */

/* Numatytieji (Šviesi tema) */
:root {
    --background: #ffffff;
    --background-alt: #f7f9fc;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --card-background: #ffffff;
    --border-color: #e5e7eb;
    --shadow-color: rgba(17, 24, 39, 0.05);

    --accent-primary: #4f46e5; /* Sodri violetinė/mėlyna */
    --accent-primary-hover: #4338ca;
    --accent-text-color: #ffffff;

    --neon-glow-color: transparent;
}

/* Tamsi tema */
[data-theme='dark'] {
    --background: #0d1117;
    --background-alt: #161b22;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --card-background: #161b22;
    --border-color: #30363d;
    --shadow-color: rgba(0, 0, 0, 0.2);

    --accent-primary: #58a6ff; /* Šviesi mėlyna neoniniam efektui */
    --accent-primary-hover: #79c0ff;
    --accent-text-color: #ffffff;

    --neon-glow-color: rgba(88, 166, 255, 0.5);
}

/* --- PAGRINDINIAI STILIAI --- */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
main { overflow-x: hidden; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--accent-primary); text-decoration: none; transition: all 0.2s ease; }

/* === HEADERIS === */
.navbar {
    background-color: rgba(var(--background-rgb, 255, 255, 255), 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky; top: 0; z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-weight: 700; font-size: 1.5rem; color: var(--text-primary); }
.nav-logo img { height: 46px; vertical-align: middle; }
[data-theme='dark'] .nav-logo img {  }
.nav-menu { display: flex; align-items: center; gap: 1rem; }
.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}
.nav-menu a:not(.button):hover { color: var(--text-primary); background-color: var(--background-alt); }
#theme-toggle { background: none; border: none; cursor: pointer; font-size: 1.5rem; line-height: 1; padding: 0.5rem; color: var(--text-secondary); }
#theme-toggle:hover { color: var(--text-primary); }


/* === MYGTUKAI === */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.button-primary {
    background-color: var(--accent-primary);
    color: var(--accent-text-color);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.button-primary:hover {
    background-color: var(--accent-primary-hover);
    border-color: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
[data-theme='dark'] .button-primary { box-shadow: 0 0 15px var(--neon-glow-color); }
.button-secondary {
    background-color: var(--background-alt);
    color: var(--text-secondary);
    border-color: var(--border-color);
}
.button-secondary:hover { background-color: var(--border-color); color: var(--text-primary); }

/* === BENDROS SEKCIJOS IR KORTELĖS === */
.section { padding: 6rem 0; }
.section-title { text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 4rem auto; font-size: 1.125rem; color: var(--text-secondary); }
.step-card, .profile-form, .news-item, .dashboard-table-wrapper {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 8px 30px var(--shadow-color);
}

/* === INDEX.PHP SPECIFINIAI STILIAI === */
.hero { padding: 8rem 0; text-align: center; }
[data-theme='light'] .hero { background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.step-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px var(--shadow-color); }
.step-card .step-number { font-size: 1rem; font-weight: 600; color: var(--accent-primary); margin-bottom: 1rem; display: block; }
.step-card h3 { margin-top: 0; margin-bottom: 0.5rem; }
.cta-section-wrapper { margin-top: 6rem; padding: 6rem 0; background-color: var(--background-alt); }
.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section .button { margin-top: 2rem; padding: 1rem 2.5rem; font-size: 1.125rem; }

/* === FORMOS IR LENTELĖS === */
label { font-weight: 500; display: block; margin-bottom: 0.5rem; }
input[type=text], input[type=email], input[type=date], input[type=password], input[type=number], input[type=url], select, textarea {
    width: 100%; padding: 0.75rem 1rem; margin-bottom: 1.25rem;
    background-color: var(--background-alt);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem; color: var(--text-primary);
    font-family: 'Inter', sans-serif; font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--neon-glow-color);
}
input[type=submit] { width: 100%; }
.status { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.status.paid { background-color: #d4edda; color: #155724; }
.status.pending_payment { background-color: #fff3cd; color: #856404; }
.status.approved { background-color: #d1ecf1; color: #0c5460; }
.status.pending_approval { background-color: #e2e3e5; color: #383d41; }
[data-theme='dark'] .status.paid { background-color: rgba(40, 167, 69, 0.2); color: #34d399; }
[data-theme='dark'] .status.pending_payment { background-color: rgba(255, 193, 7, 0.2); color: #facc15; }
[data-theme='dark'] .status.approved { background-color: rgba(88, 166, 255, 0.2); color: #58a6ff; }
[data-theme='dark'] .status.pending_approval { background-color: rgba(108, 117, 125, 0.2); color: #8b949e; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; border-bottom: 1px solid var(--border-color); text-align: left; }
th { color: var(--text-secondary); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }

/* --- Dual-Logo Sistema --- */
.logo-dark {
    display: none; /* Pagal nutylėjimą tamsus logotipas paslėptas */
}

[data-theme='dark'] .logo-light {
    display: none; /* Kai tema tamsi, paslepiame šviesų logotipą */
}

[data-theme='dark'] .logo-dark {
    display: block; /* Kai tema tamsi, parodome tamsų logotipą */
}