/* =========================================================
   RESET GLOBAL
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f5f6fa;
    color: #333;
    overflow-x: hidden;
}

/* =========================================================
   LAYOUT STRUCTURE
========================================================= */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* =========================================================
   SIDEBAR DESKTOP
========================================================= */
.sidebar {
    width: 240px;
    background: #1a2332;
    color: #fff;
    padding-top: 20px;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
}

/* MENIU DESKTOP */
.menu a {
    display: block;
    padding: 14px 25px;
    color: #c5cfde;
    text-decoration: none;
    border-left: 3px solid transparent;
    font-size: 16px;
}

.menu a:hover,
.menu a.active {
    background: #243146;
    border-left: 3px solid #4aa3ff;
    color: #fff;
}

.menu .logout {
    margin-top: 40px;
    background: #b83232;
    text-align: center;
}

.menu .logout:hover {
    background: #e84444;
}

/* =========================================================
   CONTENT AREA
========================================================= */
.content-area {
    flex: 1;
    margin-left: 240px;
    padding: 30px;
}

.content-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* TITLURI */
h1, h2 {
    margin-bottom: 20px;
    font-weight: 600;
}

/* =========================================================
   SEARCH + BUTTONS
========================================================= */
.search-form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-form input {
    width: 260px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.btn {
    background: #007bff;
    color: white;
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #005fcc;
}

.btn.danger {
    background: #c9302c;
}

.btn.danger:hover {
    background: #a82824;
}

.btn.small-btn {
    padding: 6px 10px;
    font-size: 13px;
}

.btn.block-btn {
    width: 100%;
    margin-top: 10px;
}

/* =========================================================
   DESKTOP TABLE
========================================================= */
.desktop-table {
    margin-top: 20px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.product-table th {
    background: #eef1f5;
    padding: 14px;
    text-align: left;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.product-table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
}

/* rânduri alternate */
.product-table tr:nth-child(even) td {
    background: #f8f9fc;
}

.product-table tr:nth-child(odd) td {
    background: #ffffff;
}

.product-table tr:hover td {
    background: #eef2f8 !important;
}

/* =========================================================
   PAGINATION
========================================================= */
.pagination {
    margin-top: 25px;
    text-align: center;
}

.pagination a {
    padding: 8px 14px;
    margin: 0 4px;
    background: #e4e7eb;
    text-decoration: none;
    border-radius: 6px;
    color: #333;
}

.pagination a.active {
    background: #007bff;
    color: #fff;
}

.pagination a:hover {
    background: #cbd2da;
}

.pagination-pro{
    margin-top:25px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
}

.page-btn{
    padding:8px 12px;
    background:#e4e7eb;
    border-radius:6px;
    text-decoration:none;
    color:#333;
    font-size:14px;
    min-width:36px;
    text-align:center;
}

.page-btn:hover{
    background:#007bff;
    color:#fff;
}

.page-btn.active{
    background:#007bff;
    color:#fff;
    font-weight:600;
    cursor:default;
}

.dots{
    padding:8px 6px;
    color:#777;
    font-size:16px;
}

/* =========================================================
   MOBILE VERSION — CARD LIST
========================================================= */
.mobile-list {
    display: none;
}

.product-card {
    background: #fff;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
}

.product-toggle {
    font-size: 22px;
    font-weight: bold;
}

.product-details {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.product-details div,
.product-details a,
.product-details button {
    margin-bottom: 12px;
}

/* =========================================================
   MODAL ȘTERGERE
========================================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-content {
    background: #fff;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    text-align: center;
}

.modal-content input[type=password] {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
    margin-top: 40px;
    text-align: center;
    color: #777;
}

/* =========================================================
   RESPONSIVE (MOBILE)
========================================================= */

.hamburger {
    position: fixed;
    top: 12px;
    left: 12px;

    width: 44px;
    height: 40px;

    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    background: rgba(255, 255, 255, 0.85); /* fundal semi-transparent */
    backdrop-filter: blur(6px);            /* efect modern (safe) */
    border-radius: 10px;

    box-shadow: 0 4px 14px rgba(0,0,0,0.15);

    cursor: pointer;
    z-index: 999999;
}


.hamburger div {
    width: 22px;
    height: 3px;
    background: #1a2332; /* contrast bun */
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active {
    background: rgba(26, 35, 50, 0.85); /* închis peste sidebar */
}

.hamburger.active div {
    background: #ffffff;
}


/* ===== HAMBURGER ICON ===== */

/* FORCE HAMBURGER TO X — OVERRIDE TOTAL */

.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
}

.hamburger.active div:nth-child(2) {
    opacity: 0 !important;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
}

.sidebar {
    pointer-events: auto;
}


@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }


    .sidebar {
        left: -260px;
        transition: 0.3s;
        z-index: 2000;
        width: 240px;
    }

    .sidebar.active {
        left: 0;
    }

    .content-area {
        margin-left: 0;
        padding-top: 70px;
    }

    /* ASCUNDEM TABEL DESKTOP */
    .desktop-table { display: none; }

    /* AFIȘĂM LISTA MOBILE */
    .mobile-list { display: block; }

    .add-btn {
        margin-bottom: 15px;
        display: block;
    }
}

/* FORM CARD – ADD/EDIT PRODUCT */
.card-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.card-form form {
    width: 100%;
}

.card-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.card-form input[type=text],
.card-form input[type=url],
.card-form input[type=number] {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccd1d9;
    border-radius: 8px;
    font-size: 15px;
}

.card-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}


/* =========================================================
   FIX — ROW FULL-WIDTH FOR DETAILS TABLE
========================================================= */
.details-table th,
.details-table td {
    padding: 14px 18px;
    font-size: 15px;
}

.details-table tr:nth-child(even) {
    background: #f8f9fc !important;
}

.details-table tr:nth-child(odd) {
    background: #ffffff !important;
}


/* =========================================================
   USER ACTION BUTTONS LAYOUT
========================================================= */
.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

@media (max-width: 900px) {
    .user-actions {
        flex-direction: column;
    }
}


/* =========================================================
   DETAILS PAGE
========================================================= */
.user-details-box {
    margin-bottom: 30px;
}

.details-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* GRID PENTRU FORMULARE — 2 coloane pe desktop */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Pe mobil devine automat o singură coloană */
@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
.fullwidth {
    max-width: 100% !important;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
@media (max-width: 900px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}
.location-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.location-box label {
    font-weight: 600;
    display: block;
    margin-top: 10px;
}
.location-box input,
.location-box select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ccd1d9;
}

/* =========================================================
   FORM GRID 2 COL (ADD / EDIT USER)
========================================================= */

.card-form.fullwidth {
    max-width: 100%;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* EXTINDEM INPUT-URILE (INCLUDE EMAIL + PASSWORD) */

.card-form input[type=text],
.card-form input[type=url],
.card-form input[type=number],
.card-form input[type=email],
.card-form input[type=password] {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccd1d9;
    border-radius: 8px;
    font-size: 15px;
}

/* LOCAȚII + PANOURI */

.location-box {
    border: 1px solid #dde1e7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafbff;
}

.location-box label {
    margin-top: 0;
}

.location-box select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccd1d9;
    margin-bottom: 10px;
}

/* ROW DE BUTOANE LA DETALII USER */

.btn-row {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-row .btn {
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .btn-row {
        flex-direction: column;
    }
    
    .btn-row .btn {
        width: 100%;
        text-align: center;
    }
}

.qr-inactive td {
    background: #ffe7e7 !important;
    color: #a33;
    opacity: 0.8;
}

/* ===============================
   LOGO MAGAZIN – CERC + INITIALĂ
   =============================== */

.sidebar-logo{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:20px 10px;
    text-align:center;
}

/* CERC ALB */
.logo-circle{
    width:56px;
    height:56px;
    border-radius:50%;
    background:#ffffff;

    /* CENTRARE PERFECTĂ LITERĂ */
    display:flex;
    align-items:center;
    justify-content:center;

    color:#111111;
    font-size:26px;
    font-weight:700;

    box-shadow:0 2px 6px rgba(0,0,0,0.25);
}

/* NUME FIRMĂ SUB CERC */
.logo-name{
    margin-top:6px;
    font-size:12px;
    font-weight:500;
    color:#e0e0e0;
    line-height:1.2;
    max-width:160px;
    word-break:break-word;
}
/* ===============================
   FIX SIDEBAR DESKTOP
=============================== */
/* ===============================
   contract si utilizare
=============================== */

.info-wrapper h1 {
    font-size: 34px;
    margin-bottom: 15px;
}

.info-intro {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 50px;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 35px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.info-card h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.info-card ul {
    padding-left: 22px;
    margin-top: 10px;
}

.info-card li {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.highlight {
    background: #f5f8ff;
    border-left: 5px solid #4a6cff;
    padding: 15px 18px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 15px;
    color: #333;
}

@media (max-width: 900px) {
    .info-wrapper h1 {
        font-size: 28px;
    }
}

@media print {

    /* ascundem TOT ce nu e contract */
    body * {
        visibility: hidden;
    }

    #print-contract,
    #print-contract * {
        visibility: visible;
    }

    #print-contract {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* eliminăm umbre, butoane, layout web */
    .info-card {
        box-shadow: none !important;
        border-radius: 0 !important;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    button {
        display: none !important;
    }

    /* font curat pentru print */
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}

/* pentru ecran, rămâne normal */
