/* ستايل صفحة track_order — كان مدمجًا داخل templates/track_order.html وتم نقله هنا ليتخزّن في المتصفح ويسهل تعديله. */
* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            transition: background-color 0.3s, color 0.3s;
        }

        :root {
            --bg-color: #fffdf8;
            --card-bg: #ffffff;
            --text-color: #17132f;
            --subtext-color: #777777;
            --border-color: #dddddd;
            --header-bg: #ffffff;
            --back-bg: #f5eee1;
            --item-bg: #faf8f3;
            --status-bg: #fff0dc;
            --status-text: #8a5215;
            --progress-inactive: #e5e5e5;
            --back-shop-bg: #17132f;
            --back-shop-text: #ffffff;
        }

        body.dark-mode {
            --bg-color: #121212;
            --card-bg: #1e1e1e;
            --text-color: #f1f1f1;
            --subtext-color: #a0a0a0;
            --border-color: #333333;
            --header-bg: #1e1e1e;
            --back-bg: #2d2b26;
            --item-bg: #2a2a2a;
            --status-bg: #3d2c1c;
            --status-text: #ffb86c;
            --progress-inactive: #3a3a3a;
            --back-shop-bg: #ff6b25;
            --back-shop-text: #ffffff;
        }

        body {
            font-family: Arial, Tahoma, sans-serif;
            background: var(--bg-color);
            color: var(--text-color);
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        header {
            height: 80px;
            background: var(--header-bg);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 5%;
            box-shadow: 0 2px 10px rgba(0,0,0,.08);
        }

        .logo {
            font-size: 28px;
            font-weight: 900;
        }

        .logo small {
            display: block;
            font-size: 10px;
            color: var(--subtext-color);
            text-align: center;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .back {
            background: var(--back-bg);
            padding: 10px 18px;
            border-radius: 25px;
            font-weight: bold;
            font-size: 15px;
        }

        .theme-toggle {
            background: var(--back-bg);
            color: var(--text-color);
            padding: 10px 14px;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            border: none;
        }

        .container {
            max-width: 850px;
            margin: 40px auto;
            padding: 0 20px;
        }

        h1 {
            text-align: center;
            font-size: 38px;
            margin-bottom: 30px;
        }

        .box {
            background: var(--card-bg);
            border-radius: 30px;
            padding: 30px;
            box-shadow: 0 4px 18px rgba(0,0,0,.08);
            margin-bottom: 25px;
        }

        .box h2 {
            margin-bottom: 25px;
            font-size: 24px;
        }

        label {
            display: block;
            font-weight: bold;
            margin-bottom: 8px;
        }

        input {
            width: 100%;
            padding: 15px;
            border: 1px solid var(--border-color);
            background: var(--card-bg);
            color: var(--text-color);
            border-radius: 20px;
            font-size: 16px;
            margin-bottom: 18px;
            outline: none;
        }

        input:focus {
            border-color: #ff6b25;
        }

        .search-btn {
            width: 100%;
            border: 0;
            background: #ff6b25;
            color: white;
            padding: 16px;
            border-radius: 30px;
            font-size: 19px;
            font-weight: bold;
            cursor: pointer;
        }

        .error {
            background: #ffe7e7;
            color: #b42323;
            padding: 15px;
            border-radius: 15px;
            margin-bottom: 20px;
            text-align: center;
            font-weight: bold;
        }

        .admin-msg-box {
            background: #fff3cd;
            color: #856404;
            border: 1px solid #ffeeba;
            padding: 15px 20px;
            border-radius: 20px;
            margin-bottom: 25px;
            font-size: 16px;
            line-height: 1.6;
        }

        .admin-msg-box.canceled {
            background: #f8d7da;
            color: #721c24;
            border-color: #f5c6cb;
        }

        body.dark-mode .admin-msg-box {
            background: #41361c;
            color: #ffe08a;
            border-color: #574822;
        }

        body.dark-mode .admin-msg-box.canceled {
            background: #491217;
            color: #f8b4b9;
            border-color: #601e24;
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            margin-bottom: 30px;
        }

        .order-number {
            font-size: 25px;
            font-weight: bold;
        }

        .current-status {
            background: var(--status-bg);
            color: var(--status-text);
            padding: 10px 18px;
            border-radius: 25px;
            font-weight: bold;
        }

        .current-status.status-canceled {
            background: #f8d7da;
            color: #721c24;
        }

        body.dark-mode .current-status.status-canceled {
            background: #491217;
            color: #f8b4b9;
        }

        .progress {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            position: relative;
            margin: 40px 0;
        }

        .progress::before {
            content: "";
            position: absolute;
            top: 22px;
            right: 10%;
            left: 10%;
            height: 4px;
            background: var(--progress-inactive);
            z-index: 0;
        }

        .step {
            position: relative;
            z-index: 1;
            text-align: center;
            width: 20%;
        }

        .circle {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: var(--progress-inactive);
            color: var(--subtext-color);
            margin: 0 auto 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .step.active .circle {
            background: #ff6b25;
            color: white;
        }

        .step.active .title {
            color: #ff6b25;
            font-weight: bold;
        }

        .title {
            font-size: 13px;
            line-height: 1.5;
            color: var(--subtext-color);
        }

        .details {
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            padding: 10px 0;
        }

        .detail-label {
            color: var(--subtext-color);
        }

        .detail-value {
            font-weight: bold;
            text-align: left;
        }

        .items-title {
            margin-top: 25px;
            margin-bottom: 15px;
            font-size: 20px;
        }

        .item {
            background: var(--item-bg);
            padding: 15px;
            border-radius: 15px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .total {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            font-size: 22px;
            font-weight: bold;
        }

        .total-price {
            color: #ff6b25;
        }

        .back-shop {
            display: block;
            text-align: center;
            background: var(--back-shop-bg);
            color: var(--back-shop-text);
            padding: 15px;
            border-radius: 30px;
            margin-top: 25px;
            font-weight: bold;
        }

        @media (max-width: 650px) {
            header {
                height: 70px;
                padding: 0 15px;
            }

            .logo {
                font-size: 22px;
            }

            .back {
                padding: 8px 12px;
                font-size: 13px;
            }

            h1 {
                font-size: 28px;
            }

            .box {
                padding: 20px;
            }

            .order-header {
                align-items: flex-start;
                flex-direction: column;
            }

            .progress {
                margin-top: 35px;
            }

            .circle {
                width: 35px;
                height: 35px;
                font-size: 13px;
            }

            .title {
                font-size: 10px;
            }

            .detail-row {
                flex-direction: column;
                gap: 4px;
            }

            .detail-value {
                text-align: right;
            }
        }
