/* =========================================================
   COMMON.CSS — HEADER & FOOTER (FRESH BUILD)
   System: AVM Ticket System

   Built strictly according to:
   - ticketheader.php
   - ticketfooter.php

   Scope:
   - Global header
   - Global footer
   - Main content flow (footer always visible)

   Rules:
   - NO admin/dashboard styles
   - NO page-specific UI
   - NO body background forcing
   - SAFE with auth.css / welcome.css
========================================================= */


/* =========================================================
   RESET (MINIMAL & SAFE)
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================================================
   BASE DOCUMENT FLOW
========================================================= */
html,
body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */
.main-header {
    width: 100%;
    background-color: #1f2937; /* dark slate */
    color: #ffffff;
}

/* Header inner wrapper */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;

    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo hard lock (defensive) */
.main-header img {
    max-width: 56px;
    width: auto;
    height: auto;
    display: block;
    flex-shrink: 0;
}

/* Preferred logo class */
.site-logo {
    width: 52px;
    height: auto;
    flex-shrink: 0;
}

/* Title block */
.site-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
}

.site-title .tagline {
    font-size: 13px;
    margin-top: 2px;
    color: #c7d2fe;
}


/* =========================================================
   MAIN CONTENT WRAPPER
   (keeps footer at bottom)
========================================================= */
.main-content {
    flex: 1;
    width: 100%;
}


/* =========================================================
   FOOTER
========================================================= */
.main-footer {
    width: 100%;
    background-color: #1f2937;
    color: #d1d5db;
    text-align: center;

    padding: 16px 12px;
    font-size: 14px;

    position: relative;
}

/* Footer text */
.main-footer p {
    margin: 0;
}

/* Scroll-to-top button */
.scroll-to-top-btn {
    position: absolute;
    right: 16px;
    bottom: 12px;

    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;

    background-color: #374151;
    color: #ffffff;
    font-size: 16px;

    cursor: pointer;
}

.scroll-to-top-btn:hover {
    background-color: #4b5563;
}


/* =========================================================
   LINKS (GLOBAL BASIC)
========================================================= */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================================
   RESPONSIVE — HEADER ONLY
========================================================= */
@media (max-width: 768px) {

    .header-inner {
        padding: 14px 18px;
        gap: 12px;
    }

    .site-logo {
        width: 46px;
    }

    .site-title h2 {
        font-size: 18px;
    }

    .site-title .tagline {
        font-size: 12px;
    }
}
