/* View-Specific Styles - Extracted from inline styles */
/* These styles maintain the exact appearance for both themes */

/* ===== CreateCustomer & CreateGroup Styles ===== */

/* Dark theme (default) styles */
.customer-info-wrapper {
    margin-top: 20px;
}

.customer-info-title {
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.customer-info-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    overflow: hidden;
}

.customer-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.customer-info-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.15);
}

.customer-info-card:hover::before {
    opacity: 1;
}

.customer-info-label {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}

.customer-info-value {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.customer-not-found {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.customer-not-found-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

.customer-not-found-text {
    color: #fca5a5;
    font-size: 0.95rem;
    font-weight: 500;
}

.customer-fixed-discount {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.customer-fixed-discount-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #4ade80;
}

.customer-fixed-discount-text {
    color: #86efac;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Light theme overrides */
[data-theme="light"] .customer-info-title {
    color: #3a3a3a;
}

[data-theme="light"] .customer-info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .customer-info-card::before {
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.1), rgba(168, 85, 247, 0.1));
}

[data-theme="light"] .customer-info-card:hover {
    border-color: rgba(49, 130, 206, 0.4);
    box-shadow: 0 8px 24px rgba(49, 130, 206, 0.2);
}

[data-theme="light"] .customer-info-label {
    color: #666666;
}

[data-theme="light"] .customer-info-value {
    color: #1a1a1a;
}

[data-theme="light"] .customer-not-found {
    background: rgba(254, 226, 226, 0.8);
    border: 1px solid rgba(229, 62, 62, 0.3);
}

[data-theme="light"] .customer-not-found-text {
    color: #c53030;
}

[data-theme="light"] .customer-fixed-discount {
    background: rgba(209, 250, 229, 0.8);
    border: 1px solid rgba(56, 161, 105, 0.3);
}

[data-theme="light"] .customer-fixed-discount-icon {
    color: #38a169;
}

[data-theme="light"] .customer-fixed-discount-text {
    color: #2f855a;
}

/* Alert Success - Dark theme */
.alert-success {
    border: none !important;
    border-radius: 16px !important;
    background-color: rgba(40, 167, 69, 0.10) !important;
    color: #20c997 !important;
    box-shadow: none !important;
    padding-left: 24px;
    padding-right: 24px;
}

/* Alert Success - Light theme */
[data-theme="light"] .alert-success {
    background-color: rgba(209, 250, 229, 0.8) !important;
    border: 1px solid rgba(56, 161, 105, 0.3) !important;
    color: #2f855a !important;
}

/* Custom Confirmation Modal */
#customConfirmModal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.confirm-modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    padding: 32px 28px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
}

[data-theme="light"] .confirm-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 240, 240, 0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.confirm-modal-text {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

[data-theme="light"] .confirm-modal-text {
    color: #1a1a1a;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Disabled buttons */
.btn-secondary.disabled,
.btn-secondary[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.6;
}

/* Select elements - Dark theme */
select.form-input,
select.form-input option {
    background-color: rgba(30, 41, 59, 0.8) !important;
    color: #f1f5f9 !important;
}

select.form-input:focus,
select.form-input:active {
    background-color: rgba(30, 41, 59, 0.9) !important;
    color: #f1f5f9 !important;
}

/* Select elements - Light theme */
[data-theme="light"] select.form-input,
[data-theme="light"] select.form-input option {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] select.form-input:focus,
[data-theme="light"] select.form-input:active {
    background-color: rgba(255, 255, 255, 1) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] select,
[data-theme="light"] select.form-input,
[data-theme="light"] .form-select {
    cursor: pointer !important;
}

[data-theme="light"] select:not(:disabled),
[data-theme="light"] select.form-input:not(:disabled),
[data-theme="light"] .form-select:not(:disabled) {
    cursor: pointer !important;
}

[data-theme="light"] input:not(:disabled):not(:read-only),
[data-theme="light"] .form-input:not(:disabled):not(:read-only) {
    cursor: text !important;
}

/* Hide dropdown arrow for IE/Edge */
select.form-input::-ms-expand {
    display: none;
}

/* Remove number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Disabled input styling - Dark theme */
input[type=number]:disabled,
input[type=number]:read-only {
    background-color: #2d3748 !important;
    color: #a0aec0 !important;
    border-color: #4a5568 !important;
    opacity: 1 !important;
}

/* Disabled input styling - Light theme */
[data-theme="light"] input[type=number]:disabled,
[data-theme="light"] input[type=number]:read-only,
[data-theme="light"] input[type=text]:disabled,
[data-theme="light"] input[type=text]:read-only,
[data-theme="light"] input:disabled,
[data-theme="light"] input:read-only,
[data-theme="light"] .form-input:disabled,
[data-theme="light"] .form-input:read-only {
    background-color: #cbd5e0 !important;
    color: #4a5568 !important;
    border-color: #a0aec0 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/* Textarea styling */
textarea.form-input {
    min-height: 63px;
    height: 44px;
    box-sizing: border-box;
    width: 100%;
}

/* Full width form groups */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* Loading button states */
button.is-loading svg,
.btn.is-loading svg {
    display: none !important;
}

button.is-loading .button-text,
.btn.is-loading .button-text {
    margin-left: 0 !important;
}

/* Flatpickr input - Light theme override */
[data-theme="light"] input.flatpickr-input,
[data-theme="light"] input.flatpickr-input[readonly],
[data-theme="light"] input[readonly].flatpickr-input,
[data-theme="light"] .flatpickr-input,
[data-theme="light"] input[type="text"].flatpickr-input,
[data-theme="light"] input.form-control.flatpickr-input {
    background: white !important;
    background-color: white !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

/* Even more specific for stubborn cases */
body[data-theme="light"] input.flatpickr-input {
    background: white !important;
    background-color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .customer-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .customer-info-card {
        padding: 12px 14px;
    }

    .customer-info-value {
        font-size: 1rem;
    }
}
