.selection-buttons {
    margin-bottom: 20px;
}

.selection-line {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-select {
    min-width: 150px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background-color: white;
    color: #495057;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.form-select:hover:not(:disabled) {
    border-color: #adb5bd;
}

.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

.form-select:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    color: #6c757d;
    border-color: #e9ecef;
}

.selection-line input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background-color: white;
    color: #495057;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.selection-line input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

.btn-add {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-add:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-add:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    transform: none;
}

.order-table-container {
    margin-top: 20px;
}

.submit-container {
    margin-top: 20px;
    text-align: right;
}

/* Search Modal Styles */
.search-container {
    padding: 20px;
}

#itemSearch {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    border-top: 1px solid #eee;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.result-description {
    font-size: 14px;
    margin-bottom: 4px;
}

.result-details {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.highlight {
    background-color: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

.no-results, .search-error {
    padding: 15px;
    text-align: center;
    color: #666;
}

.search-error {
    color: #dc3545;
}

/* Update modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.result-color {
    color: #666;
    margin-left: 8px;
    font-size: 0.9em;
}

.btn-cancel {
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    margin-left: 8px;
}

.btn-cancel:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.order-info-container {
    margin: 20px 0;
    padding: 15px;
    border-top: 1px solid #ddd;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.panel-type-display {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 5px;
    text-align: center;
}

.panel-profile-image {
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.panel-profile-image:hover {
    transform: scale(1.02);
}

/* Panel Profile Modal */
.panel-profile-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.panel-profile-modal img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.panel-profile-modal .close {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.panel-profile-modal .close:hover {
    color: #fff;
}

.search-help {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-style: italic;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-title {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form .form-group {
    margin-bottom: 0;
}

.login-form .form-label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
}

.login-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease-in-out;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.forgot-password {
    display: inline-block;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease-in-out;
}

.forgot-password:hover {
    color: #007bff;
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
    font-size: 14px;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Register Page Styles */
.register-box {
    max-width: 450px;  /* Slightly wider than login box to accommodate more fields */
}

.register-form {
    gap: 12px;  /* Slightly tighter spacing for more fields */
}

.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Responsive adjustments for register page */
@media (max-width: 480px) {
    .register-box {
        padding: 20px;
    }
    
    .register-form .form-group {
        margin-bottom: 12px;
    }
}

/* Compatibility Warning Styles */
.compatibility-warning {
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #ffd700;
    border-radius: 6px;
    background-color: #fff8dc;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

.compatibility-warning .warning-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.compatibility-warning .warning-icon {
    font-size: 24px;
    line-height: 1;
}

.compatibility-warning .warning-message {
    flex: 1;
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

.compatibility-warning .warning-message strong {
    color: #664d03;
}

.compatibility-warning .warning-message small {
    display: block;
    margin-top: 5px;
    color: #997404;
    font-style: italic;
}

.compatibility-warning .warning-close {
    background: none;
    border: none;
    color: #856404;
    font-size: 20px;
    line-height: 1;
    padding: 0 5px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.compatibility-warning .warning-close:hover {
    color: #664d03;
}

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