.invoice-extractor-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.invoice-extractor-section .container {
    max-width: 1000px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
}

.calculator-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.calculator-title i {
    margin-right: 15px;
    font-size: 2.2rem;
}

.calculator-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.calculator-badge {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-item {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.extractor-main {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.upload-section {
    text-align: center;
}

.upload-box {
    border: 2px dashed #d0d7de;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
    margin-bottom: 20px;
}

.upload-box:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-box.dragover {
    border-color: #667eea;
    background: #e8f0ff;
    transform: scale(1.02);
}

.upload-box i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.9rem;
    color: #999;
}

.manual-btn {
    padding: 14px 30px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: #fff;
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.input-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: #667eea;
}

.section-title .list-count {
    font-size: 0.85rem;
    color: #999;
    font-weight: normal;
    margin-left: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.form-item {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-input.textarea {
    min-height: 80px;
    resize: vertical;
}

.amount-item {
    grid-column: span 2;
}

.amount-input {
    display: flex;
    align-items: center;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.amount-input:focus-within {
    border-color: #667eea;
}

.currency {
    padding: 12px 15px;
    background: #f8f9fa;
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

.amount-input .amount {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.amount-input .amount:focus {
    outline: none;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.save-btn, .cancel-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.cancel-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e8e8e8;
}

.cancel-btn:hover {
    border-color: #999;
}

.invoice-list-section {
    margin-top: 25px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8e8e8;
}

.list-actions {
    display: flex;
    gap: 10px;
}

.clear-all-btn, .export-btn {
    padding: 10px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-all-btn:hover {
    border-color: #ff4757;
    color: #ff4757;
}

.export-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.invoice-list {
    margin-bottom: 25px;
}

.empty-list {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.empty-list i {
    font-size: 3rem;
    color: #999;
    margin-bottom: 15px;
}

.empty-list p {
    color: #666;
    margin-bottom: 5px;
}

.invoice-item {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.invoice-type {
    font-weight: 600;
    font-size: 0.95rem;
}

.remove-invoice-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-invoice-btn:hover {
    background: rgba(255,255,255,0.3);
}

.invoice-body {
    padding: 15px 20px;
}

.invoice-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.invoice-info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #999;
    font-size: 0.9rem;
}

.info-value {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.invoice-footer {
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

.amount-info {
    text-align: center;
}

.amount-label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 5px;
}

.amount-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.amount-info.total .amount-value {
    color: #667eea;
    font-size: 1.3rem;
}

.summary-section {
    margin-top: 25px;
}

.summary-card {
    display: flex;
    justify-content: space-around;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-value.amount {
    font-size: 1.5rem;
}

.summary-item.total .summary-value {
    font-size: 1.8rem;
}

.calculator-guide {
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.guide-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.guide-title i {
    margin-right: 10px;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.guide-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.guide-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
}

.guide-item h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.guide-item p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin: 0;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
    .calculator-title {
        font-size: 1.8rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .amount-item {
        grid-column: span 1;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .invoice-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .summary-card {
        flex-direction: column;
        gap: 20px;
    }
}