/* Roboto is Material's default font */
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* Standard Status Colors - Use these throughout the application */
:root {
    --color-success: #4CAF50;      /* Green - completed, received, success */
    --color-error: #f44336;         /* Red - error, cancelled, over-received */
    --color-warning: #FFC107;       /* Amber - in progress, receiving */
    --color-info: #2196F3;          /* Blue - pending, shipped */
    --color-neutral: #757575;       /* Gray - closed, disabled */
}

body {
    text-align: center;
    background-color: #000000;
    font-family: Roboto;
    color: #FFFFFF;
}

p {
    font-size: 1.2em;
    display: inline-block;
    margin:  20px;
}

img {
    /* margin: 60px 0 30px 0; */
    width: 75px;
    filter: brightness(90%);
    padding: 30px 10px;
    border-radius: 10px;
    float: left;
    padding: 5px;
}

form {
    display: inline-block;
    margin-bottom: 16px;
}

input, select {
    /*190px is okay if you want to compact things */
    width: 300px;
    margin: 7.5px 5px;
    height: 50px;
    border: none;
    border-radius: 10px;
    font-size: 1.3em;
    color: #FFFFFF;
    background-color: #313131;
    text-align: center;
    border: solid 2px #000000;
    display: inline-block;
}

input:focus, select:focus {
    outline: none;
    border: solid 2px #007bff;
}

input[type="date"], select {
    font: inherit;
    font-size: 1.3rem;
}

input[type="date"]::placeholder, select::placeholder {
    color: rgb(133, 133, 133);
}

/* [type="date"] */
input::-webkit-calendar-picker-indicator {
    background-color: #667eea;
    padding: 50px 10px;
}

select {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="24px" height="24px"><path d="M7 10l5 5 5-5z"/></svg>'); /* Chevron icon */
    background-position: right 10px center;
    background-repeat: no-repeat;
    padding-right: 40px; /* Adjust padding to make room for the chevron */
}

/* Add specific style for items required select */
#selectedItemsTable select {
    width: 150px;
}

.checkbox-container {
    width: 250px;
    margin: 7.5px 5px;
    /* height: 50px; */
    display: inline-block;
}

.checkbox-container label  {
    color: #FFFFFF;
    display: inline-block;
    vertical-align: middle;
}

input[type="checkbox"] {
    width: 30px;
    vertical-align: middle;
}

/* Order selection checkboxes */
.order-checkbox {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

#selectAllOrders {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

#submit, #markReceived {
    background-color: #667eea;
    border: none;
    width: 300px;
    color: white;
    border-radius: 8px;
    font-size: 1.3em;
    padding: 10px;
    cursor: not-allowed;
    opacity: 0.5;
    margin-bottom: 30px;
}

#submit.enabled, #markReceived.enabled {
    cursor: pointer;
    opacity: 1;
}

#submit:hover.enabled, #markReceived:hover.enabled {
    background-color: #5568d3;
}

#submit.loading, #markReceived.loading {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

#markReceived {
    margin-top: 30px;
}

/* Secondary button style */
.secondary {
    background-color: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    font-size: 1em;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.secondary:hover {
    background-color: #667eea;
    color: #fff;
}

/* Disabled state for secondary buttons */
.secondary:disabled,
.secondary.disabled {
    background-color: transparent;
    border-color: #555;
    color: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.secondary:disabled:hover,
.secondary.disabled:hover {
    background-color: transparent;
    border-color: #555;
    color: #555;
}

/* Cancel button specific styling */
#cancelOrder, .report-issue-btn {
    border-color: #dc3545;
    color: #dc3545;
}

#cancelOrder:hover, .report-issue-btn:hover {
    background-color: #dc3545;
    color: #fff;
}

#cancelOrder:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.loading {
    font-size: 1.2em;
    color: #007bff;
    margin-bottom: 10px;
}

.result-heading {
    background-color: #121212;
    width: 200px;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    color: #667eea;
    float: left;
    font-size: 1em;
}

/* -- Material Design Table style -------------- */
table {
    margin: 0 auto; /* Center the table */
    max-width: 100%;
    margin-bottom: 0.67rem;
    background-color: #121212;
    border-radius: 5px;
    border-collapse: collapse; /* Ensure borders are collapsed */
    overflow: visible; /* Allow dropdowns to extend beyond table bounds */
    margin-top: 0.67em;
}

/* Apply border-radius to first and last cells to maintain rounded appearance */
table tr:first-child th:first-child {
    border-top-left-radius: 5px;
}

table tr:first-child th:last-child {
    border-top-right-radius: 5px;
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 5px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 5px;
}

th,td {
    text-align: left;
    padding: 10px 8px; /* Slim padding for consistent appearance */
    vertical-align: middle; /* Vertically align content */
    border-top: 0;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

th {
    background: #333;
    font-weight: 400;
    color: #d4d4d4;
    vertical-align: middle; /* Vertically align content */
    border-bottom: 1px solid #1d1d1d;
}

tbody {
    border-top: 1px solid #1d1d1d;
}

.even-row {
    background-color: #1d1d1d;
}

.odd-row {
    background-color: #2d2d2d;
}

tbody tr:nth-child(even) {
    background-color: #1d1d1d;
}

tbody tr:nth-child(odd) {
    background-color: #2d2d2d;
}

tbody tr:hover {
    background-color: #3d3d3d;
}

/* Ready to ship highlighting */
.order-row.ready-to-ship {
    background-color: #1a3a1a !important; /* Dark green background */
    border-left: 4px solid #4caf50; /* Green accent border */
}

.order-row.ready-to-ship:hover {
    background-color: #2a4a2a !important; /* Lighter green on hover */
}

/* Ready to Ship column styling */
.ready-to-ship-cell {
    font-weight: 500;
}

.ready-to-ship-cell.fully-ready {
    color: #4caf50;
    font-weight: bold;
}

/* Paid Amount column styling */
.paid-amount-cell {
    white-space: nowrap;
    font-weight: 500;
}

.paid-amount-cell.fully-paid {
    font-weight: bold;
}

.paid-percentage {
    color: #999;
    font-size: 0.9em;
    margin-left: 5px;
}

.paid-percentage.fully-paid-pct {
    color: #4caf50;
    font-weight: bold;
}

thead {
    background-color: #333;
}

thead th {
    border-bottom: 1px solid #1d1d1d;
}

/* Sortable table header hover styling for dark theme */
th.sortable:hover,
thead th:hover {
    background-color: #555;
    transition: background-color 0.2s ease;
}

#transferOrdersTable {
    margin-bottom: 3.67rem;
}

.autocomplete-suggestions {
    border: 1px solid #555;
    max-height: 40%;
    overflow-y: auto;
    position: absolute;
    background: #1d1d1d;
    width: 65%;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.location-dropdown .autocomplete-suggestions {
    max-height: none;
    top: 100%;
    width: 100%;
    border-radius: 8px;
    background: #1d1d1d;
    border: 1px solid #555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.autocomplete-suggestion {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #333;
}

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

.autocomplete-suggestion:hover {
    background-color: #2d2d2d;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Tooltip styles */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    right: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Only show tooltip when button is disabled */
.tooltip-container .tooltip-text {
    display: none;
}

.tooltip-container:has(button:disabled) .tooltip-text {
    display: block;
}

.delete-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 5px 10px;
}

.delete-btn:hover {
    background-color: #ff1a1a;
}

#notifications {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 80%;
    max-width: 600px;
}

.notification {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.2em;
}

.notification.success {
    background-color: #4CAF50;
    color: white;
}

.notification.error {
    background-color: #f44336;
    color: white;
}

.notification.warning {
    background-color: #ff9800;
    color: white;
}

/* Shipping Warning Styles */
.shipping-warning {
    margin: 20px auto;
    max-width: 800px;
    background-color: #2d2d2d;
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
}

.shipping-warning-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.shipping-warning-content i {
    color: #ff9800;
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.shipping-warning-text {
    flex: 1;
}

.shipping-warning-text strong {
    color: #ff9800;
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

.shipping-warning-text p {
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.4;
    margin: 0;
    display: block;
}

label {
    color: #d4d4d4;
}

.input-label {
    font-size: 1.3em;
    display: inline-block;
    margin: 7.5px 5px;
    text-align: left; /* Left align the note label */
}

.input-textarea {
    width: 100%;
    margin: 7.5px 5px;
    height: 100px;
    border: none;
    border-radius: 10px;
    font-size: 1.3em;
    color: #FFFFFF;
    background-color: #313131;
    text-align: left;
    padding: 10px;
    border: solid 2px #000000;
    display: inline-block;
    box-sizing: border-box; /* Ensure the width includes padding and border */
}

.input-textarea:focus {
    outline: none;
    border: solid 2px #007bff;
}

.notes-container {
    text-align: left;
}

.store-location {
    color: #667eea;
    font-size: 1.2em;
    margin-top: 10px;
    display: block;
    background-color: #1d1d1d;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.store-location:hover {
    background-color: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(187, 134, 252, 0.3);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    font-size: 0.8em;
    color: grey;
    background-color: #121212;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

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

footer a:hover {
    text-decoration: underline;
}

.footer-actions {
    display: flex;
    gap: 20px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.footer-link i {
    font-size: 0.9em;
}

.footer-link:hover {
    color: #fff;
    text-decoration: none !important;
}

#itemScanner {
    width: 400px;
}

h2 {
    text-align: left;
    margin: 0 auto;
    margin-top: 1.2rem;
    font-size: 1.3rem;
    width: max-content;
    max-width: 100%;
}

/* Table section containers for proper alignment */
.table-section {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: max-content;
    max-width: 100%;
    /* Ensure dropdowns can overflow the table container */
    overflow: visible;
}

.table-section:last-of-type {
    padding-bottom: 50px;
}

.table-section h2 {
    margin: 0;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    width: auto;
    text-align: left;
}

/* History toggle button styling */
.history-toggle {
    align-self: center;
    margin-bottom: 15px;
    min-width: 320px;
    text-align: center;
}

.back-button {
    text-decoration: none;
    color: inherit;
}

.back-button.secondary {
    color: white;
    background-color: transparent;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    text-align: left;
}

/* Add specific styles for status pills */
.status-pill {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    min-width: 80px;
    box-sizing: border-box;
}

/* Make status pills look like links when they are clickable */
.status-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Define colors for each status */
.status-pill.pendingfulfillment {
    background-color: #E6B800; /* Orange for Pending Fulfillment */
}

.status-pill.pendingreceipt {
    background-color: #2196F3; /* Gold for Pending Receipt */
}

.status-pill.completed {
    background-color: #4CAF50; /* Green for Completed */
}

.status-pill.fullyreceived {
    background-color: #4CAF50; /* Green for Fully Received */
}

.status-pill.shipped {
    background-color: #2196F3; /* Blue for Shipped */
}

.status-pill.cancelled {
    background-color: #f44336; /* Red for Cancelled */
}

.status-pill.closed {
    background-color: #757575; /* Gray for Closed */
}

.status-pill.in-progress,
.status-pill.partiallyfulfilled {
    background-color: #FFA500; /* Orange for In Progress */
}

.status-pill.loading {
    background-color: #6c757d; /* Gray for loading */
    animation: pulse 1.5s ease-in-out infinite;
    margin-bottom: 0;
}

.status-pill.not-found {
    background-color: #6c757d; /* Gray for not found */
}

.status-pill.error {
    background-color: #dc3545; /* Red for error */
}

.status-pill.pending-deletion {
    background-color: #fd7e14; /* Orange for pending deletion */
}

.status-pill.tracking-number {
    background-color: #17a2b8; /* Teal for tracking numbers */
    transition: all 0.2s ease;
}

.status-pill.tracking-number:hover {
    background-color: #138496; /* Darker teal on hover */
    transform: scale(1.05);
}

.status-pill.tracking-number.copied {
    background-color: #28a745; /* Green when copied */
    animation: copyPulse 0.3s ease;
}

@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Ticket Type Pills */
.status-pill.ticket-bug {
    background-color: #e74c3c; /* Red for bugs */
}

.status-pill.ticket-enhancement {
    background-color: #9b59b6; /* Purple for feature requests */
}

/* Wholesale Orders Page Styles */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 0 20px 0 0;
    box-sizing: border-box;
}

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

.header-title {
    font-size: 1.2em;
    margin: 0;
    color: #e0e0e0;
}

.header-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-wrapper {
    position: relative;
    width: 280px;
    max-width: 100%;
    flex-shrink: 1;
    min-width: 200px;
}

.search-input {
    width: 100%;
    border: 1px solid #444;
    border-radius: 20px;
    background: #2d2d2d;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(187, 134, 252, 0.3);
}

.search-input::placeholder {
    color: #888;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
    pointer-events: none;
}

.filters-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px auto;
    max-width: 1400px;
    padding: 0 20px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-label {
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* Collection Filter Dropdown */
.collection-filter-container {
    margin: 20px auto;
    max-width: 1400px;
    padding: 0 20px;
}

.collection-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.collection-dropdown {
    width: 400px;
    max-width: 100%;
    height: 45px;
    background-color: #313131;
    color: #FFFFFF;
    border: 2px solid #555;
    border-radius: 8px;
    font-size: 14px;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.collection-dropdown:focus {
    border-color: #007bff;
    outline: none;
}

.collection-dropdown:hover {
    border-color: #777;
}

@media (max-width: 768px) {
    .collection-dropdown {
        width: 100%;
    }
}

/* Order Type Navigation */
.order-type-nav {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    max-width: 1000px;
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: #ccc;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    border: 2px solid transparent;
}

.nav-tab:hover {
    background-color: #2a2a2a;
    color: #fff;
    text-decoration: none;
}

.nav-tab.active {
    background-color: #007bff;
    color: #fff;
    border-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.nav-tab i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .order-type-nav {
        flex-direction: column;
        gap: 5px;
        margin: 10px;
    }
    
    .nav-tab {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .nav-tab i {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .nav-tab span {
        display: none;
    }
    
    .nav-tab {
        padding: 10px;
        min-width: 60px;
    }
}

/* Page Description */
.page-description {
    text-align: center;
    margin: 15px auto;
    max-width: 800px;
    padding: 0 20px;
}

.page-description p {
    color: #ccc;
    font-size: 14px;
    margin: 0;
    padding: 10px 15px;
    background-color: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.page-description i {
    margin-right: 8px;
    color: #007bff;
}

.selection-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.selection-box {
    background: #2d2d2d;
    color: #e0e0e0;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    min-width: 80px;
    text-align: center;
}

.selection-box:hover {
    background: #3d3d3d;
    border-color: #666;
}

.selection-box.selected {
    background: #667eea;
    color: #000;
    border-color: #667eea;
    font-weight: 600;
}

.selection-box.selected:hover {
    background: #9966CC;
    border-color: #9966CC;
}

.pending-count {
    font-size: 12px;
    opacity: 0.8;
    font-weight: normal;
}

.selection-box.selected .pending-count {
    opacity: 0.7;
}

.filter-group select:focus {
    border-color: #667eea;
}

.filter-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-group option {
    background: #2d2d2d;
    color: #e0e0e0;
}

.order-row.hidden {
    display: none;
}

/* Enhanced Table Sorting Styles */
.sortable-header {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding-right: 25px;
}

.sortable-header:hover {
    background-color: #3d3d3d;
}

.column-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.sortable-header:hover .column-icon {
    opacity: 0.6;
    color: #888;
}

.column-icon.active {
    opacity: 1;
    color: #667eea;
}

.column-icon.filtered {
    opacity: 1;
    color: #667eea;
}

.sort-dropdown {
    position: absolute;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 99999; /* Increased z-index to ensure it appears above all other elements */
    min-width: 200px;
    max-width: 300px; /* Add max-width to prevent extremely wide dropdowns */
    display: none;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    /* Ensure dropdown is not clipped by parent containers */
    overflow: visible;
}

.sort-dropdown.show {
    display: block;
    opacity: 1;
}

/* Smart positioning classes - positions are set dynamically via JavaScript with fixed positioning */

.sort-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #444;
    color: #e0e0e0;
    font-size: 14px;
}

.sort-option:hover {
    background-color: #3d3d3d;
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option.divider {
    border-bottom: 2px solid #555;
    background: #1d1d1d;
    font-weight: bold;
    font-size: 12px;
    color: #667eea;
    text-transform: uppercase;
}

.filter-input {
    width: 100%;
    padding: 4px 8px;
    background: #1d1d1d;
    border: 1px solid #555;
    border-radius: 3px;
    color: #e0e0e0;
    font-size: 12px;
    margin: 5px 0;
}

.filter-checkbox {
    margin-right: 8px;
    width: 12px;
    height: auto;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
}

.filter-item:hover {
    background-color: #3d3d3d;
}

.filter-values {
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

/* Ensure dropdown doesn't exceed viewport height */
.sort-dropdown {
    max-height: 80vh;
    overflow-y: auto;
}

/* When positioned above, ensure it scrolls properly */
.sort-dropdown.dropdown-above .filter-values {
    max-height: 150px; /* Slightly smaller when above to leave room */
}

.filter-actions {
    display: flex;
    gap: 5px;
    padding: 8px;
    border-top: 1px solid #444;
}

.filter-btn {
    flex: 1;
    padding: 4px 8px;
    background: #667eea;
    color: #000;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.filter-btn:hover {
    background: #9966CC;
}

.filter-btn.secondary {
    background: #6c757d;
    color: white;
}

.filter-btn.primary {
    background: #28a745;
    color: white;
    font-weight: 500;
}

.filter-btn.primary:hover {
    background: #218838;
}

.filter-btn.secondary:hover {
    background: #545b62;
}

/* Responsive design for tablets and smaller screens */
@media (max-width: 1024px) {
    .header-container {
        gap: 15px;
        padding: 0 15px;
    }
    
    .search-wrapper {
        width: 220px;
        min-width: 180px;
    }
    
    .filters-container {
        gap: 15px;
        margin: 15px auto;
        padding: 0 15px;
    }
    
    .selection-boxes {
        gap: 8px;
    }
    
    .selection-box {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 70px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .header-left {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .search-wrapper {
        width: 200px;
        min-width: 150px;
    }
    
    .filters-container {
        gap: 15px;
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .filter-section {
        gap: 8px;
    }
    
    .filter-label {
        font-size: 15px;
    }
    
    .selection-boxes {
        gap: 6px;
    }
    
    .selection-box {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 60px;
    }
    
    .sort-dropdown {
        min-width: 180px;
    }
}

/* Filter toggle button - hidden by default */
.filter-toggle-container {
    display: none;
    justify-content: center;
    margin: 10px auto;
}

.filter-toggle-btn {
    background: #667eea;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
    background: #9966CC;
}

.filter-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
}

.filter-toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Compact mode for very small screens/narrow tabs */
@media (max-width: 600px) {
    .header-container {
        padding: 0 10px;
        gap: 10px;
    }
    
    .search-wrapper {
        width: 160px;
        min-width: 120px;
    }
    
    .filter-toggle-container {
        display: flex;
    }
    
    .filters-container {
        margin: 8px auto;
        gap: 10px;
        display: none; /* Hidden by default on small screens */
        position: relative; /* Ensure it stays in document flow */
        z-index: 10; /* Keep it above other content but below modals */
    }
    
    .filters-container.show {
        display: flex;
        position: relative; /* Maintain document flow positioning */
    }
    
    .filter-group {
        max-width: 280px;
    }
    
    .filter-group label {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .filter-group select {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* System labels for pills */
.system-label {
    font-size: 0.7em;
    color: #888;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Customer name styling for order details pages */
.customer-name {
    margin: 0;
    cursor: pointer;
    font-size: 1.2em;
    color: #e0e0e0;
    background-color: #1d1d1d;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    width: fit-content;
    transition: all 0.3s ease;
    display: inline-block;
}

.customer-name:hover {
    background-color: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(224, 224, 224, 0.3);
}

/* Status pills container styling */
.status-pills-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

/* Order info container styling */
.order-info-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Pulse animation for loading state */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading States and Skeletons */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #1e1e1e;
    border-radius: 8px;
    margin: 20px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    color: #667eea;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.loading-subtext {
    color: #888;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

/* Skeleton loading for table rows */
.skeleton-table {
    width: 100%;
    background-color: #1e1e1e;
    border-radius: 8px;
}

.skeleton-row {
    height: 60px;
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-cell {
    height: 20px;
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 8px;
}

.skeleton-wide {
    width: 80%;
}

.skeleton-medium {
    width: 60%;
}

.skeleton-narrow {
    width: 40%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Loading states for statistics */
.stats-container.loading .stat-value {
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    color: transparent;
    border-radius: 4px;
    width: 80px;
    height: 20px;
    display: inline-block;
}

/* Content fade-in animation */
.content-loaded {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide content while loading */
.loading-state .order-row,
.loading-state .stats-container:not(.loading),
.loading-state .table-section:not(.loading-container) {
    display: none;
}

/* Loading overlay for existing content */
.loading-overlay {
    position: relative;
}

.loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 30, 0.8);
    z-index: 10;
    border-radius: 8px;
}

.loading-overlay .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    margin-bottom: 0;
}

/* Progress indicators */
.progress-indicator {
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #4a5fc1);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-indeterminate {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    background-size: 50% 100%;
    animation: indeterminate 1.5s infinite;
}

@keyframes indeterminate {
    0% {
        background-position: -50% 0;
    }
    100% {
        background-position: 150% 0;
    }
}

/* Progress Modal */
#bulkProgressModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

#bulkProgressModal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-modal-content {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.progress-modal-content h3 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* Ensure table responsiveness */
@media (max-width: 768px) {
    table {
        width: 100%; /* Full width for smaller screens */
    }
}

/* Style the Receive button */
button.receive-btn {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 15px; /* Add padding */
    font-size: 0.9em; /* Adjust font size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

button.receive-btn:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Style the View button for outbound orders */
button.view-btn {
    background-color: #667eea; /* Purple background to match theme */
    color: white; /* White text */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 15px; /* Add padding */
    font-size: 0.9em; /* Adjust font size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

button.view-btn:hover {
    background-color: #5568d3; /* Darker purple on hover */
}

/* Ensure consistent dimensions for all action buttons */
button.receive-btn, button.view-btn, .delete-btn {
    padding: 10px 15px; /* Add padding */
    font-size: 0.9em; /* Adjust font size */
    border-radius: 5px; /* Rounded corners */
}

/* Touch-friendly plus/minus buttons for iPad receiving */
.qty-btn {
    background: #2a2a2a;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    font-size: 1.5em;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation; /* Optimize for touch */
    -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
}

.qty-btn:hover:not(:disabled) {
    background: #4CAF50;
    color: white;
    transform: scale(1.05);
}

.qty-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.qty-btn.minus-btn {
    border-color: #f44336;
    color: #f44336;
}

.qty-btn.minus-btn:hover:not(:disabled) {
    background: #f44336;
    color: white;
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
}

.qty-btn:disabled:hover {
    background: #2a2a2a;
    color: #666;
    transform: none;
}

.qty-btn.plus-btn:disabled {
    border-color: #666;
    color: #666;
}

.qty-btn.plus-btn:disabled:hover {
    background: #2a2a2a;
    color: #666;
}

/* Report Issue Button Styling */
.report-issue-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #2a2a2a;
    border: 2px solid #ff9800;
    color: #ff9800;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.report-issue-btn:hover {
    background: #ff9800;
    color: white;
    transform: translateY(-1px);
}

.report-issue-btn:active {
    transform: translateY(0);
}

.report-issue-btn.reported {
    border-color: #f44336;
    color: #f44336;
}

.report-issue-btn.reported:hover {
    background: #f44336;
    color: white;
}

/* Receiving and received quantity cell styling */
.receiving-qty, .received-qty, .missing-qty {
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
}

.receiving-qty {
    /* Color is dynamically set by JavaScript based on value */
    /* Amber = normal receiving, Green = completes order, Red = over-receiving */
}

.received-qty {
    color: var(--color-success); /* Green for already received items */
}

.missing-qty {
    /* Color is dynamically set by JavaScript based on value */
    /* Green = 0 (complete), Red = positive (missing), Orange = negative (over-received) */
}

/* Quantity controls column */
.quantity-controls {
    white-space: nowrap;
}

.previously-received-items-list {
    margin-bottom: 60px;
}

body {
	background: linear-gradient(0.33turn, #000, #292929, #141414, #1a1f2e, #141414, #292929, #000);
	background-size: 800% 800%;
	animation: gradient 120s ease infinite;
	/* height: 100vh; */
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* Location Selector Styles */
.location-selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
}

.location-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.location-dropdown {
    position: relative;
    display: block;
    width: 100%;
    max-width: 300px;
}

.location-dropdown input {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    font-size: 1.3em;
    color: #FFFFFF;
    background-color: #313131;
    text-align: center;
    border: solid 2px #000000;
    display: block;
    box-sizing: border-box;
}

.location-dropdown input:focus {
    outline: none;
    border: solid 2px #007bff;
}

.location-dropdown input.locked {
    background: #2a2a2a;
    cursor: not-allowed;
    color: #888;
}

.location-label {
    font-size: 0.9em;
    text-align: left;
    width: 100%;
    max-width: 300px;
    margin: 2px 0 3px 5px;
    font-weight: 400;
}

.itemsearch-label {
    display: block;
    text-align: center;
    font-size: 1.1rem;
}

.swap-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    position: absolute;
    right: -11px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: block;
}

.swap-btn:hover {
    background: #5568d3;
    transform: translateY(-50%) scale(1.05);
}

.swap-btn.locked {
    display: none;
}

#from-location-search {
    margin: 0px;
    border-radius: 10px 10px 0px 0px;
    border-bottom: hidden;
}

#to-location-search {
    margin: 0px;
    border-radius: 0px 0px 10px 10px;
    border-top: hidden;
}

/* Update existing styles to accommodate the new layout */
#transferOrderForm {
    margin-top: 20px;
}

/* Shopify Authentication Styles */
.login-btn {
    background-color: #96bf48;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.3em;
    display: inline-block;
    margin: 20px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #7ba83a;
    color: white;
    text-decoration: none;
}

.login-btn i {
    margin-right: 10px;
}

/* Location tiles for store selection */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    margin-bottom: 4rem;
}

.location-tile {
    background: linear-gradient(135deg, #3a4fb1 0%, #5568d3 100%);
    border-radius: 15px;
    padding: 30px 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.location-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.location-tile:hover::before {
    left: 100%;
}

.location-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.location-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.location-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.location-action {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: auto;
}

.location-action i {
    margin-right: 5px;
}

/* Wholesale section */
.wholesale-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-align: center;
}

.wholesale-question {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #FFFFFF;
    display: block;
}

.wholesale-link {
    display: inline-block;
    background: linear-gradient(135deg, #2c916f 0%, #31929b 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 145, 111, 0.3);
}

.wholesale-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 145, 111, 0.4);
    text-decoration: none;
    color: white;
}

.wholesale-link i {
    margin-right: 8px;
}

/* User info footer */
.user-info-footer {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    margin: 40px auto 0;
}

.logout-link {
    color: #ff6b6b;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.logout-link:hover {
    background-color: rgba(255, 107, 107, 0.1);
    text-decoration: none;
    color: #ff6b6b;
}

.logout-link i {
    margin-right: 5px;
}

/* Responsive design for tablets/iPads */
@media (max-width: 768px) {
    table {
        width: 100%; /* Full width for smaller screens */
    }
    
    .location-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }
    
    .location-tile {
        padding: 25px 15px;
        min-height: 160px;
    }
    
    .location-icon {
        font-size: 2.5rem;
    }
    
    .location-name {
        font-size: 1.2rem;
    }
    
    .user-info-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* iPad specific optimizations */
@media (max-width: 1024px) and (orientation: portrait) {
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

/* Report issue link styling */
.report-issue-link {
    color: #dc3545;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s ease;
    display: inline-block;
}

.report-issue-link:hover {
    color: #c82333;
    text-decoration: underline;
}

.report-issue-link i {
    margin-right: 5px;
}

.report-issue-link.reported {
    color: #28a745;
}

.report-issue-link.reported:hover {
    color: #218838;
}

.issue-text {
    font-size: 11px;
    color: #ff6b6b;
    font-style: italic;
    margin-top: 5px;
    display: none;
    word-wrap: break-word;
    max-width: 150px;
}

/* Summary Statistics Styling (shared across pages) */
.stats-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-item {
    background: #2d2d2d;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 120px;
}

.stat-label {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

/* ==================== Issue/Feature Modal Styles (Chat-style bottom-right) ==================== */
.issue-modal {
    position: fixed;
    z-index: 10000;
    bottom: 50px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.issue-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.issue-modal-content {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 0;
    width: 380px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Modal header */
.issue-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    background: #252525;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.issue-modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.issue-modal-body {
    padding: 20px;
}

/* Modal control button */
.issue-modal-close {
    font-size: 20px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.issue-modal-close:hover {
    color: #fff;
    background: #c0392b;
}

/* Bug report header style */
.issue-modal.bug-report .issue-modal-header h2 {
    color: #e74c3c;
}

/* Feature request header style */
.issue-modal.feature-request .issue-modal-header h2 {
    color: #9b59b6;
}

.issue-modal-content h2 i {
    font-size: 1rem;
}

.issue-modal-description {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    display: block;
}

.issue-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.issue-form-group label {
    display: block;
    color: #e0e0e0;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.issue-form-group input,
.issue-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    text-align: left;
    height: auto;
    margin: 0;
}

.issue-form-group input:focus,
.issue-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.issue-form-group input::placeholder,
.issue-form-group textarea::placeholder {
    color: #666;
}

.issue-form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.issue-form-info {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.issue-form-info i {
    color: #667eea;
    margin-top: 2px;
    flex-shrink: 0;
}

.issue-form-info span {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.4;
}

.issue-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.issue-btn-cancel {
    padding: 10px 18px;
    background: transparent;
    border: 2px solid #555;
    border-radius: 8px;
    color: #aaa;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.issue-btn-cancel:hover {
    border-color: #777;
    color: #fff;
    background: #333;
}

.issue-btn-submit {
    padding: 10px 18px;
    background: #667eea;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Bug report submit button */
.issue-modal.bug-report .issue-btn-submit {
    background: #e74c3c;
}

.issue-modal.bug-report .issue-btn-submit:hover {
    background: #c0392b;
}

/* Feature request submit button */
.issue-modal.feature-request .issue-btn-submit {
    background: #9b59b6;
}

.issue-modal.feature-request .issue-btn-submit:hover {
    background: #8e44ad;
}

.issue-btn-submit:hover {
    transform: translateY(-1px);
}

.issue-btn-submit:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

.issue-btn-submit i {
    font-size: 0.9rem;
}

/* Issue Notification Styles */
.issue-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #1e1e1e;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 90%;
}

.issue-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.issue-notification.success {
    border-left: 4px solid #4CAF50;
}

.issue-notification.success i {
    color: #4CAF50;
}

.issue-notification.error {
    border-left: 4px solid #f44336;
}

.issue-notification.error i {
    color: #f44336;
}

.issue-notification span {
    color: #e0e0e0;
    font-size: 0.95rem;
}

/* Responsive styles for issue modal */
@media (max-width: 600px) {
    .issue-modal {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .issue-modal-content {
        width: auto;
        max-height: calc(100vh - 80px);
    }
    
    .issue-modal-content h2 {
        font-size: 1rem;
    }
    
    .issue-form-actions {
        flex-direction: column;
    }
    
    .issue-btn-cancel,
    .issue-btn-submit {
        width: 100%;
        justify-content: center;
    }
}