body {
        font-family: Arial, sans-serif;
        max-width: 1200px;
        margin: 20px auto;
        padding: 20px;
        background: #f5f5f5;
        max-width: 100%;

    }

    .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 100%;

    }
    select {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 5px;
        font-size: 16px;
        color: #333;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 12px;
    }

    select:focus {
        border-color: #ffd700;
        outline: none;
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    .panel {
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        grid-column: span 1;
    }

    .add-gold-container {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }

    .input-group {
        margin-bottom: 15px;
    }

    label {
        display: block;
    }

    input {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 10px;
    }

    button {
        background: #ffd700;
        color: #000;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s;
        font-weight: bold;
    }

    button:hover {
        background: #ffed4a;
        transform: translateY(-2px);
    }

    .inventory-item, .sale-item {
        background: #fff9e6;
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 8px;
        border-left: 4px solid #ffd700;
        position: relative;
    }

    .delete-btn {
        background: #ff5252;
        color: white;
        padding: 5px 10px;
        border-radius: 3px;
        position: absolute;
        right: 10px;
        top: 10px;
    }

    .edit-btn {
        background: #4CAF50;
        color: white;
        padding: 5px 10px;
        border-radius: 3px;
        position: absolute;
        right: 60px;
        top: 10px;
    }

    .sell-btn {
        background: #2196F3;
        color: white;
        margin-top: 10px;
    }

    #summary {
        grid-column: 1 / -1;
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        margin-top: 20px;
        border: 2px solid #ffd700;
    }

    .gold-icon {
        color: #ffd700;
        margin-right: 5px;
    }

    .status-badge {
        display: inline-block;
        padding: 3px 8px;
        border-radius: 3px;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .in-stock {
        background: #4CAF50;
        color: white;
    }

    .sold {
        background: #ff9800;
        color: white;
    }

    .nav-bar {
        padding: 10px 20px;
        margin-bottom: 20px;
        border-radius: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .summary-btn {
        background: #4CAF50;
        color: white;
        padding: 8px 15px;
        border-radius: 4px;
        cursor: pointer;
        margin-right: 10px;
    }

    .settings-btn {
        background: #666;
        color: white;
        padding: 8px 15px;
        border-radius: 4px;
        cursor: pointer;
    }

    .settings-modal {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .search-modal {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .search-buttons {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }

    .search-btn {
        background: #4CAF50;
        color: white;
    }

    .reset-btn {
        background: #ff9800;
        color: white;
    }

    [dir="rtl"] {
        direction: rtl;
        text-align: right;
    }

    [dir="rtl"] .delete-btn {
        left: 10px;
        right: auto;
    }

    [dir="rtl"] .edit-btn {
        left: 60px;
        right: auto;
    }

    .pagination {
        margin-top: 15px;
        display: flex;
        justify-content: center;
        gap: 10px;
        background: #fff;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .pagination button {
        background: #ffd700;
        color: black;
        padding: 5px 15px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .pagination button:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

    .items-per-page {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .items-per-page select {
        padding: 5px;
        border-radius: 4px;
    }

    .filter-controls {
        margin-bottom: 15px;
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .filter-controls select,
    .filter-controls input {
        padding: 5px;
        border-radius: 4px;
        border: 1px solid #ddd;
    }

    .confirm-modal, .alert-modal {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        z-index: 1001;
        min-width: 300px;
        text-align: center;
    }

    .modal-content {
        position: relative;
    }

    .modal-content h2 {
        margin-bottom: 15px;
        color: #333;
    }

    .modal-content p {
        margin-bottom: 20px;
        color: #666;
    }

    .modal-buttons {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        margin-top: 15px;
    }

    .sell-modal, .edit-modal {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        z-index: 1000;
        min-width: 300px;
    }

    [data-tooltip] {
        position: relative;
    }

    [data-tooltip]:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.8);
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
    }

    .search-buttons button {
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    .summary-popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        z-index: 1000;
        max-width: 600px;
        width: 90%;
    }

    .summary-popup h2 {
        color: #333;
        margin-bottom: 20px;
        text-align: center;
        padding-bottom: 10px;
        border-bottom: 2px solid #ffd700;
    }

    .summary-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
        border-left: 4px solid #ffd700;
    }

    .stat-label {
        color: #666;
        font-size: 14px;
        margin-bottom: 5px;
    }

    .stat-value {
        color: #333;
        font-size: 18px;
        font-weight: bold;
    }

    @media (max-width: 768px) {
        .container {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 480px) {
        body {
            padding: 10px;
        }

        .panel {
            padding: 15px;
        }
    }

    @media (max-width: 768px) {
        .container {
            grid-template-columns: 1fr;
        }
        .filter-controls {
            flex-direction: column;
            align-items: stretch;
        }
    }

    @media (max-width: 480px) {
        body {
            padding: 10px;
        }

        .panel {
            padding: 15px;
        }
    }

    .footer-tabs {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        /* display: flex; */
        justify-content: space-around;
        padding: 10px 0;
    }

    .footer-tabs button {
        background: none;
        border: none;
        color: #333;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
    }

    .footer-tabs button .icon {
        font-size: 20px;
        margin-bottom: 5px;
    }

    @media (max-width: 768px) {
        .footer-tabs {
            display: flex;
        }
        .pagination{
            margin-bottom: 100px;
        }

    }




