/* General body setup */
body {
    font-family: "Orbitron", "Roboto", sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #e1e1e1;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Neon Headings */
h1,
h2,
h3 {
    color: #00ffe0;
    text-shadow: 0 0 8px #00ffe0, 0 0 12px #00ffe0;
    letter-spacing: 2px;
    text-align: center;
    margin: 20px 0;
}

/* Card Layout */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 15px;
    margin: 20px 10px;
    width: 90%;
    max-width: 600px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 255, 255, 0.3);
}

/* Inputs and Textarea - Base Styling */
input,
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

/* Focused input highlight */
input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00ffe0;
    box-shadow: 0 0 6px #00ffe0;
}

/* Mobile adjustments */
@media (max-width: 600px) {

    input,
    textarea,
    select {
        padding: 9px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
}

/* Futuristic Button */
button {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    font-size: 14px;
    margin: 5px;
    padding: 10px 16px;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 198, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 198, 255, 0.6);
}

/* Disabled Buttons */
button:disabled {
    background-color: #6c6c7b;
    cursor: not-allowed;
}

/* Status Tags */
.status span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.status .delivered {
    background: linear-gradient(135deg, #28a745, #00c853);
}

.status .unread {
    background: linear-gradient(135deg, #f44336, #ff1744);
}

.status .paid {
    background: linear-gradient(135deg, #009688, #00bfa5);
}

.status .not-paid {
    background: linear-gradient(135deg, #ff5722, #e91e63);
}

/* Order Container */
.order-container {
    margin-top: 20px;
    width: 90%;
    max-width: 700px;
}

.order {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.order:hover {
    background: rgba(255, 255, 255, 0.1);
}

.date-group {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #00c6ff;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    text-align: left;
}

.date-group:hover {
    text-decoration: underline;
}

/* Price & Billing */
.order-price {
    font-size: 14px;
    color: #e0f7fa;
}

/* Order Buttons */
.order-buttons button {
    background: linear-gradient(45deg, #ff8c00, #ff5722);
    font-size: 14px;
    margin: 5px;
    padding: 10px 16px;
    border-radius: 8px;
}

.order-buttons button:hover {
    background: linear-gradient(45deg, #ff5722, #ff8c00);
}

/* Billing Area */
#billing-area {
    margin-top: 20px;
}

#billing-area textarea {
    font-family: "Courier New", Courier, monospace;
    background-color: #2e2e2e;
    color: #e1e1e1;
}

/* Modal / Invoice */
.invoice-box {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    overflow: auto;
}

.invoice-box h2 {
    font-size: 24px;
    color: #00bfa5;
}

/* Responsive */
@media print {
    body {
        background: white;
        color: black;
    }

    .invoice-box {
        box-shadow: none;
    }
}

/* Customer Name & Search Container Styling */
.customer-section,
.search-section {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Inputs inside those sections */
.customer-section input,
.search-section input,
.customer-section button,
.search-section button {
    font-size: 15px;
    padding: 10px 14px;
}

/* Responsive improvements */
@media (max-width: 600px) {

    .customer-section,
    .search-section {
        padding: 12px;
        gap: 8px;
    }

    .customer-section input,
    .search-section input {
        font-size: 14px;
        padding: 8px 12px;
    }

    .customer-section button,
    .search-section button {
        padding: 10px;
        font-size: 14px;
    }
}

/* New Styles for Custom Dropdown */
.suggestions-box {
    position: absolute;
    top: 60px;
    /* Adjust based on input height */
    left: 15px;
    width: calc(100% - 30px);
    /* Match input width */
    background: #203a43;
    border: 1px solid #00ffe0;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    /* Hidden by default */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(0, 255, 224, 0.2);
}

.item-count {
    font-size: 0.9em;
    color: #00ffe0;
    margin-left: 10px;
    font-weight: bold;
}
