﻿/* ============================================================
   ROOT VARIABLES
============================================================ */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #C61B8D;
    --text-dark: #333;
    --text-muted: #666;
    --bg-light: #f8f9fc;
    --white: #ffffff;
    --navbar-height: 70px;
    --primary-blue: #8596e0;
    --dark-blue: #5d73d5;
    --light-blue: #aeb9ea;
    --very-light-blue: #f8f9fc;
}

/* ============================================================
   RESET & BASE (Mobile First)
============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: .35px;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ============================================================
   HEADINGS
============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
    height: var(--navbar-height); /* 70px */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    /*box-shadow: 0 4px 5px rgba(0,0,0,.05);*/
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0 1rem; /* remove vertical padding */
    display: flex;
    align-items: center;
}
/* Brand */
.navbar-brand {
    padding: 0; /* override Bootstrap */
    height: var(--navbar-height);
    display: flex;
    align-items: center;
}

/* Logo */
.navbar-logo {
    height: 52px; /* safe for 70px navbar */
    width: auto;
    max-height: 100%;
    transition: transform .3s ease;
}


    .navbar-logo:hover {
        transform: scale(1.05);
    }

.nav-link {
    font-weight: 500;
}

.nav-link {
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
}


@media (min-width: 992px) {
    body {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .navbar {
        padding: 0 .75rem;
    }
    /* Collapse menu */
    .navbar-collapse {
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 25px rgba(0,0,0,.08);
        border-radius: 0 0 14px 14px;
        padding: 12px 16px;
        z-index: 999;
    }

    .navbar-nav {
        align-items: flex-start;
        gap: 6px;
    }

    .nav-link {
        width: 100%;
        padding: 10px 0;
    }
    /* Smaller logo on mobile */
    .navbar-logo {
        height: 46px;
    }
}

/* ============================================================
   MAIN CONTENT
============================================================ */
.main-content {
    padding: .5rem 0;
    margin-top: 0.5rem;
    min-height: 70vh;
}

.content-wrapper {
    background: var(--white);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    box-shadow: 0 5px 25px rgba(0,0,0,.07);
    animation: fadeInUp .4s ease;
}

@media (min-width: 768px) {
    .content-wrapper {
        padding: 2rem;
        margin: 2rem auto;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
    text-align: center;
}

    .hero h2 {
        font-size: 1.8rem;
        color: var(--secondary);
        font-weight: 600;
    }

    .hero p {
        font-size: .95rem;
        color: #555;
        margin-bottom: 20px;
    }

@media (min-width: 768px) {
    .hero h2 {
        font-size: 2.4rem;
    }
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-dashboard,
.btn-secondary {
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    transition: all .3s ease;
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .3s ease, transform .2s ease, box-shadow .2s ease;
    will-change: transform;
}


    .btn-dashboard:hover {
        background: var(--secondary);
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0,0,0,.2);
        color: #fff;
    }

.btn-dashboard {
    -webkit-tap-highlight-color: transparent;
}

    .btn-dashboard:active {
        transform: translateY(0);
        box-shadow: 0 3px 8px rgba(0,0,0,.2);
    }

.btn-secondary {
    background: var(--accent);
    color: #fff !important;
}

    .btn-secondary:hover {
        background: #a11770;
    }

/* ============================================================
   FEATURE CARDS
============================================================ */
.features {
    background: var(--white);
    padding: 22px 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
    transition: transform .3s ease;
    height: 100%;
}

    .features:hover {
        transform: translateY(-5px);
    }

    .features i {
        font-size: 34px;
        color: var(--primary);
        margin-bottom: 12px;
    }

    .features p {
        font-size: 14px;
    }

    .features .icon {
        font-size: 34px;
        margin-bottom: 12px;
    }


/* ============================================================
   CTA BOX
============================================================ */
.cta-box {
    background: var(--white);
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 25px rgba(0,0,0,.08);
}

/* ============================================================
   LOADING OVERLAY
============================================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #ddd;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   ALERTS
============================================================ */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    padding: .75rem 0 .75rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    background: #f9f9f9;
}


.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-logo {
    width: 140px;
    margin: 0 auto 10px;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: .75rem;
}

.footer-links {
    list-style: none;
    padding-left: 1rem;
}

    .footer-links li {
        margin: 6px 0;
        margin-bottom: 8px;
    }

    .footer-links a {
        color: var(--text-muted);
        text-decoration: none;
        transition: color .3s ease;
    }

        .footer-links a:hover {
            color: var(--accent);
        }


.social-links a {
    margin-right: 12px;
    color: var(--primary);
    font-size: 18px;
    transition: 0.3s;
}

    .social-links a:hover {
        color: #4b35c5;
        transform: translateY(-2px);
    }

/*.footer .copyright {
    padding-top: 15px;
    border-top: 1px solid #ddd;
    color: #999;
    font-size: 13px;
    text-align: center
}*/

.copyright {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 10px;
    text-align: center;
    font-size: 14px;
}

.highlight {
    color: #c61b8d;
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
    }
}
/* ============================================================
   FOOTER BREAKPOINTS
============================================================ */
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    .footer-logo {
        margin: 0 0 12px;
    }
}

@media (min-width: 992px) {
    .navbar-logo {
        height: 55px; /* larger on desktop */
    }

    .nav-link {
        font-size: 15px;
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   UTILITIES
============================================================ */
.Link_Edit {
    color: #0da82f;
}

    .Link_Edit:hover {
        color: var(--primary);
    }

.Link_Delete {
    color: #ff3b3b;
}

    .Link_Delete:hover {
        color: var(--accent);
    }

.fs_75rem {
    font-size: .75rem !important;
}

/* Touch friendly */
button, a {
    min-height: 44px;
}

.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/*new button style*/
/*button {
    border-radius: 20px;
    border: 1px solid var(--primary-blue);
    background: linear-gradient(135deg, var(--light-blue), var(--dark-blue));
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

    button:active {
        transform: scale(0.95);
    }

    button:focus {
        outline: none;
    }

    button.ghost {
        background-color: transparent;
        border-color: #FFFFFF;
    }

    button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
        background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    }

.btn.btn-icon {
    height: 40px;
    width: 40px;
    line-height: 34px;
    padding: 0;
}*/
