/* ============================================================
   Matro & Catering – Adminpanel CSS
   Mobilvänlig, modern och ren design
   ============================================================ */

/* ----------- Global ----------- */
body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 20px;
z-index: 99;
}

/* ----------- Layout ----------- */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

/* ----------- Navigation ----------- */
.topnav {
    background: #222;
    padding: 12px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.topnav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.topnav a:hover {
    text-decoration: underline;
}

.topnav .right {
    margin-left: auto;
}

/* ----------- Buttons ----------- */
.btn {
    display: inline-block;
    background: #2a7ae2;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
}

.btn:hover {
    background: #1f5fb0;
}

/* ----------- Tables ----------- */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table th, .table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.table th {
    background: #fafafa;
    font-weight: 600;
}

.table tr:hover {
    background: #f0f7ff;
}

/* ----------- Forms ----------- */
.form label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
}

.form textarea {
    min-height: 120px;
}

.form button {
    margin-top: 20px;
    width: 100%;
}

/* ----------- Login page ----------- */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #ececec;
}

.login-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #2a7ae2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.error {
    background: #ffdddd;
    padding: 10px;
    border-left: 4px solid #d00;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* ----------- Mobile tweaks ----------- */
@media (max-width: 600px) {
    .topnav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .table th, .table td {
        padding: 10px;
        font-size: 14px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
/* ----------- Dashboard Cards ----------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dash-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.dash-card h2 {
    font-size: 36px;
    margin: 0;
}

.dash-card p {
    margin: 8px 0 0;
    font-size: 15px;
    opacity: 0.8;
}

.dash-card.highlight {
    background: #2a7ae2;
    color: #fff;
}
/* ----------- Index, about ----------- */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 60px 20px;
}
.about-section img {
    margin-right: 90px; /* justera värdet tills det känns perfekt */
}

.about-section img {
    justify-self: end;
    max-width: 30%;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media(max-width: 800px) {
    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-section img {
        justify-self: center;
        margin-bottom: 20px;
    }
}

/* ===========================
   HEADER
=========================== */

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    text-decoration: none;
    color: #333;
}

.nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: color .3s;
}

.nav a:hover {
    color: #d4a373;
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-top: 1px solid #eee;
}

.mobile-nav a {
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    font-size: 20px;
}

.mobile-nav.open {
    display: flex;
}

@media(max-width: 800px) {
    .nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* ===========================
   FOOTER
=========================== */

/* ===========================
   FOOTER
=========================== */

.site-footer {
    background: #2a2a2a;
    color: #fff;
    padding: 70px 20px;
    margin-top: 100px;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.footer-brand h3 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    margin-bottom: 5px;
}

.footer-brand .tagline {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.footer-contact p {
    margin: 6px 0;
    opacity: 0.85;
    font-size: 17px;
}

.footer-copy {
    margin-top: 35px;
    opacity: 0.6;
    font-size: 14px;
}

@media(max-width: 600px) {
    .site-footer {
        padding: 50px 20px;
    }
}

.customer-box {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 100%;
}

@media(max-width: 700px) {
    .form-row {
        flex-direction: column;
    }
}
.logo img {
    height: 55px;       /* lagom för headern */
    width: auto;        /* behåller proportioner */
    display: block;
}

@media (max-width: 600px) {
    .logo img {
        height: 42px;   /* mindre på mobil */
    }
}

/* ===========================
   NY RESPONSIV HEADER
=========================== */

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* DESKTOP NAV */
.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: color .3s;
}

.nav a:hover {
    color: #d4a373;
}

/* HAMBURGER BUTTON */
.mobile-menu-btn {
    display: none;
    font-size: 34px;
    cursor: pointer;
    user-select: none;
}

/* MOBILE NAV */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    padding: 18px 0;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ===========================
   MOBILANPASSNING
=========================== */
@media (max-width: 800px) {

    .logo img {
        height: 45px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-inner {
        padding: 12px 16px;
    }
}
.header-social img {
    width: 22px;
    height: 22px;
    opacity: 0.85;
    margin-left: 12px;
    transition: opacity 0.2s ease;
}

.header-social img:hover {
    opacity: 1;
}
