@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {

    --bg: #0b1120;

    --card: rgba(17,24,39,0.88);

    --border: rgba(255,255,255,0.06);

    --text: #f8fafc;

    --text-soft: #94a3b8;

    --primary: #6366f1;

    --primary-2: #8b5cf6;

    --danger: #ef4444;

    --success: #22c55e;

    --radius: 28px;

    --shadow:
        0 20px 50px rgba(0,0,0,0.35);
}

/* =========================
   RESET
========================= */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

/* =========================
   BODY
========================= */

body {

    font-family: 'Manrope', sans-serif;

    background:
        radial-gradient(circle at top left, #1e1b4b 0%, transparent 25%),
        radial-gradient(circle at bottom right, #172554 0%, transparent 25%),
        var(--bg);

    color: var(--text);

    min-height: 100vh;
}

/* =========================
   HEADER
========================= */

header {

    position: sticky;

    top: 0;

    z-index: 999;

    padding: 25px 50px;

    background: rgba(11,17,32,0.85);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

header h2 {

    font-size: 34px;

    font-weight: 800;

    margin-bottom: 20px;

    background: linear-gradient(
        90deg,
        #ffffff,
        #a5b4fc
    );

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;
}

/* =========================
   NAVIGATION
========================= */

nav {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

nav a {

    text-decoration: none;

    color: var(--text-soft);

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.04);

    padding: 14px 20px;

    border-radius: 18px;

    transition: 0.35s ease;

    font-weight: 600;
}

nav a:hover {

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-2)
    );

    color: white;

    transform: translateY(-2px);
}

/* =========================
   MAIN
========================= */

main {

    width: 100%;

    max-width: 1200px;

    margin: 60px auto;

    padding: 0 25px;
}

/* =========================
   TITLES
========================= */

h1 {

    font-size: 38px;

    line-height: 1;

    margin-bottom: 20px;

    font-weight: 800;

    letter-spacing: -4px;

    background: linear-gradient(
        90deg,
        #ffffff,
        #c4b5fd
    );

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;
}

h2 {

    font-size: 34px;

    margin-bottom: 30px;

    color: white;
}

h3 {

    color: white;
}

p {

    color: var(--text-soft);

    line-height: 1.7;
}

/* =========================
   FORM
========================= */

form {

    background: rgba(17,24,39,0.82);

    border: 1px solid var(--border);

    border-radius: 32px;

    padding: 22px;

    backdrop-filter: blur(18px);

    box-shadow: var(--shadow);

    margin-bottom: 50px;
}

label {

    display: block;

    margin-top: 22px;

    margin-bottom: 10px;

    font-weight: 700;

    color: white;

    font-size: 14px;
}

/* =========================
   INPUT / SELECT
========================= */

input,
select {

    width: 100%;

    padding: 12px;

    border-radius: 18px;

    border: 1px solid rgba(255,255,255,0.06);

    background: rgba(255,255,255,0.04);

    color: white;

    font-size: 14px;

    transition: 0.3s ease;
}

select {

    appearance: none;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            white 50%
        ),
        linear-gradient(
            135deg,
            white 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;
}

select option {

    background: #111827;

    color: white;
}

input:focus,
select:focus {

    outline: none;

    border-color: rgba(99,102,241,0.7);

    box-shadow:
        0 0 0 5px rgba(99,102,241,0.14);
}

/* =========================
   PRODUCT PREVIEW
========================= */

.product-preview {

    margin-top: 30px;

    display: flex;

    align-items: center;

    gap: 30px;

    padding: 28px;

    border-radius: 28px;

    background: linear-gradient(
        135deg,
        rgba(99,102,241,0.12),
        rgba(139,92,246,0.08)
    );

    border: 1px solid rgba(255,255,255,0.06);
}

.product-preview img {

    width: 120px;

    height: 120px;

    object-fit: contain;

    padding: 15px;

    border-radius: 24px;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.06);
}

.product-info h3 {

    font-size: 22px;

    margin-bottom: 14px;

    font-weight: 800;
}

.product-info p {

    font-size: 18px;

    color: #a5b4fc;

    font-weight: 700;
}

/* =========================
   BUTTON
========================= */

button {

    border: none;

    border-radius: 18px;

    padding: 16px 20px;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.35s ease;

    color: white;
}

button:hover {

    transform: translateY(-2px);
}

/* =========================
   MAIN BUTTON
========================= */

form button {

    width: 100%;

    margin-top: 30px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-2)
    );

    box-shadow:
        0 18px 40px rgba(99,102,241,0.35);
}

/* =========================
   SUCCESS
========================= */

.success {

    background: rgba(34,197,94,0.12);

    border: 1px solid rgba(34,197,94,0.2);

    color: #4ade80;

    padding: 20px;

    border-radius: 20px;

    font-weight: 700;

    margin-bottom: 30px;
}

/* =========================
   TABLE COMMANDES
========================= */

.table-commandes {

    display: flex;

    flex-direction: column;

    gap: 22px;
}

/* =========================
   ROW
========================= */

.commande-row {

    display: grid;

    grid-template-columns:
        140px
        1fr
        180px
        220px;

    align-items: center;

    gap: 25px;

    background: rgba(17,24,39,0.88);

    border: 1px solid rgba(255,255,255,0.06);

    border-radius: 18px;

    padding: 15px;

    transition: 0.35s ease;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.35);
}

.commande-row:hover {

    transform: translateY(-4px);

    border-color: rgba(99,102,241,0.35);
}

/* =========================
   IMAGE
========================= */

.commande-image {

    width: 90px;

    height: 90px;

    border-radius: 24px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(99,102,241,0.14),
            rgba(139,92,246,0.08)
        );

    display: flex;

    align-items: center;

    justify-content: center;
}

.commande-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 18px;
}

/* =========================
   DETAILS
========================= */

.commande-details h3 {

    font-size: 28px;

    margin-bottom: 15px;

    color: white;

    font-weight: 800;
}

.commande-details p {

    margin-bottom: 8px;

    color: #cbd5e1;
}

.commande-details strong {

    color: white;
}

/* =========================
   PRICE
========================= */

.commande-price {

    text-align: center;
}

.commande-price h4 {

    font-size: 34px;

    color: white;

    margin-bottom: 8px;

    font-weight: 800;
}

.commande-price span {

    color: #a5b4fc;

    font-size: 14px;

    font-weight: 600;
}

/* =========================
   ACTIONS
========================= */

.commande-actions {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.commande-actions a {

    text-decoration: none;

    text-align: center;

    padding: 16px;

    border-radius: 18px;

    color: white;

    font-weight: 700;

    transition: 0.3s ease;
}

.commande-actions a:hover {

    transform: translateY(-2px);
}

/* =========================
   EDIT BTN
========================= */

.edit-btn {

    background: linear-gradient(
        135deg,
        #3b82f6,
        #2563eb
    );
}

/* =========================
   DELETE BTN
========================= */

.delete-btn {

    background: linear-gradient(
        135deg,
        #ef4444,
        #dc2626
    );
}

/* =========================
   FOOTER
========================= */

footer {

    margin-top: 80px;

    padding: 35px;

    text-align: center;

    color: var(--text-soft);

    border-top: 1px solid rgba(255,255,255,0.06);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .commande-row {

        grid-template-columns: 1fr;

        text-align: center;
    }

    .commande-image {

        margin: auto;
    }

    .commande-actions {

        flex-direction: row;
    }

    nav {

        flex-direction: column;
    }

    nav a {

        width: 100%;
    }
}

@media (max-width: 700px) {

    header {

        padding: 20px;
    }
F
    main {

        padding: 0 15px;
    }

    h1 {

        font-size: 42px;
    }

    form {

        padding: 25px;
    }

    .product-preview {

        flex-direction: column;

        text-align: center;
    }

    .product-preview img {

        width: 140px;

        height: 140px;
    }

    .commande-price h4 {

        font-size: 28px;
    }
    
    
}

.commande-inline{
    display:flex;
    align-items:center;
    gap:30px;
    flex-wrap:wrap;
    margin:8px 0;
}

.commande-inline p{
    margin:0;
}

.commande-details p{
    margin:6px 0;
}

.commande-inline{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:15px 40px;
    margin:8px 0;
}