/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: #0B1020;
    color: #fff;
    line-height: 1.4;
}

/* =========================
   TYPOGRAPHY RESET
========================= */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 600;
}

/* =========================
   HERO
========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: auto;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    color: #aab1c5;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* =========================
   BUTTONS (GLOBAL)
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: 0.25s ease;
}

/* PRIMARY */
.btn-primary {
    background: #4f46e5;
    color: #fff;
}

.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

/* =========================
   CTA
========================= */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

/* =========================
   MODULES GRID
========================= */
.modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 60px 40px;
}

.card {
    background: #111827;
    padding: 30px;
    border-radius: 18px;
}

/* =========================
   LOGIN
========================= */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 420px;
    background: #111827;
    padding: 40px;
    border-radius: 24px;
}

.login-card h2 {
    margin-bottom: 20px;
}

.login-card input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: none;
    border-radius: 12px;
    background: #1f2937;
    color: white;
}

.login-card button {
    width: 100%;
    padding: 14px;
    background: #4f46e5;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
}

/* =========================
   LAYOUT (ADMIN)
========================= */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #111827;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.sidebar a {
    color: white;
    text-decoration: none;
    margin-bottom: 18px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
}

.content {
    flex: 1;
    padding: 40px;
}

/* =========================
   APP GRID
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.app-card {
    background: #111827;
    padding: 25px;
    border-radius: 20px;
}

.app-card a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #4f46e5;
    color: white;
    text-decoration: none;
    border-radius: 10px;
}

.login-links{
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.login-links a{
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.25s ease;
}

/* primarni link (reset password) */
.link-primary{
    color: #66A5AD;
    font-weight: 600;
}

.link-primary:hover{
    color: #88c4cc;
    text-decoration: underline;
}

/* sekundarni link (support) */
.link-secondary{
    color: #94a3b8;
}

.link-secondary:hover{
    color: #ffffff;
    opacity: 0.9;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .modules {
        padding: 40px 20px;
    }
}