/* Modern Receipt Viewer Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0b4610;
    --primary-dark: #083a0d;
    --primary-light: #0f5a14;
    --secondary-color: #f8fafc;
    --accent-color: #10b981;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.modern-receipt-container {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0b4610 0%, #0f5a14 50%, #083a0d 100%);
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.modern-receipt-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.modern-receipt-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.modern-receipt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modern-receipt-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.modern-receipt-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.modern-receipt-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.025em;
    color: white;
}

.modern-receipt-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
    color: white;
}

.modern-receipt-body {
    padding: 3rem 2rem;
}

.modern-form-group {
    margin-bottom: 2rem;
}

.modern-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.modern-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 70, 16, 0.1);
    background: white;
    transform: translateY(-2px);
}

.modern-form-input:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: white;
}

.modern-form-input::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.modern-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-dark);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modern-btn-primary:active {
    transform: translateY(0);
}

.modern-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

.modern-btn-primary:hover::before {
    left: 100%;
}

.modern-error {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-error::before {
    content: '⚠';
    font-size: 1rem;
}

.modern-success-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(11, 70, 16, 0.3);
    position: relative;
    overflow: hidden;
    animation: successGlow 2s ease-in-out infinite alternate;
}

@keyframes successGlow {
    from {
        box-shadow: var(--shadow-lg), 0 0 30px rgba(11, 70, 16, 0.3);
    }
    to {
        box-shadow: var(--shadow-lg), 0 0 50px rgba(11, 70, 16, 0.5);
    }
}

.modern-success-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.modern-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 1;
    color: white !important;
}

.modern-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.modern-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modern-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.modern-glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-receipt-container {
        padding: 1rem 0;
    }
    
    .modern-receipt-header {
        padding: 2rem 1.5rem;
    }
    
    .modern-receipt-title {
        font-size: 2rem;
    }
    
    .modern-receipt-body {
        padding: 2rem 1.5rem;
    }
    
    .modern-container {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .modern-receipt-card {
        margin: 0 0.5rem;
        border-radius: 8px;
    }
}

/* Animation for page load */
.modern-fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* Floating elements */
.modern-floating-element {
    position: absolute;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.modern-floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.modern-floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.modern-floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Modern File Upload Styling */
.modern-file-upload {
    position: relative;
    display: block;
    width: 100%;
    min-height: 120px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.modern-file-upload:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modern-file-upload:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 70, 16, 0.1);
    background: white;
}

.modern-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.modern-file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

.modern-file-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modern-file-upload-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modern-file-upload-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modern-file-upload.has-files {
    border-style: solid;
    background: white;
}

.modern-file-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 8px;
}

.modern-file-upload-overlay .modern-loading {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
}

.modern-file-list {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.modern-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.modern-file-item:last-child {
    margin-bottom: 0;
}

.modern-file-name {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.modern-file-size {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-left: 1rem;
}

.modern-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid transparent;
    font-weight: 500;
}

.modern-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.modern-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.modern-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.modern-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

/* Custom scrollbar */
.modern-receipt-container::-webkit-scrollbar {
    width: 8px;
}

.modern-receipt-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.modern-receipt-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.modern-receipt-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
} 