/* Smart Receipt Entry Calculator Styles */
/* Brand color: #ff1716 */

.srec-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #333;
}

.srec-title {
    color: #ff1716;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #ff1716;
    padding-bottom: 15px;
}

/* Global Settings Styles */
.srec-global-settings {
    background: linear-gradient(135deg, #fff0f0, #ffe8e8);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 2px solid #ff1716;
    box-shadow: 0 2px 8px rgba(255, 23, 22, 0.1);
}

.srec-global-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.srec-global-row:last-child {
    margin-bottom: 0;
}

.srec-global-settings label {
    color: #ff1716;
    font-weight: 700;
    margin-right: 15px;
    min-width: 120px;
    font-size: 16px;
}

.srec-global-settings select,
.srec-global-settings input {
    padding: 8px 12px;
    border: 2px solid #ff1716;
    border-radius: 6px;
    font-size: 16px;
    margin-right: 15px;
    background: white;
    transition: all 0.3s ease;
}

.srec-global-settings select:focus,
.srec-global-settings input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 23, 22, 0.2);
}

#srec-global-custom-tax-rate {
    width: 100px;
}

/* Form Styles */
.srec-form-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.srec-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.srec-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.srec-form-row input,
.srec-form-row select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.srec-form-row input:focus,
.srec-form-row select:focus {
    outline: none;
    border-color: #ff1716;
    box-shadow: 0 0 0 3px rgba(255, 23, 22, 0.1);
}

#customTaxRate {
    width: 100px;
    display: inline-block;
    margin-top: 8px;
}

.required {
    color: #ff1716;
}

/* Button Styles */
.srec-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.srec-btn-primary {
    background-color: #ff1716;
    color: white;
}

.srec-btn-primary:hover {
    background-color: #e6140f;
    transform: translateY(-2px);
}

.srec-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.srec-btn-secondary:hover {
    background-color: #5a6268;
}

.srec-btn-export {
    background-color: #28a745;
    color: white;
}

.srec-btn-export:hover {
    background-color: #218838;
}

.srec-btn-danger {
    background-color: #dc3545;
    color: white;
}

.srec-btn-danger:hover {
    background-color: #c82333;
}

.srec-form-actions {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

/* Summary Styles */
.srec-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ff1716, #e6140f);
    color: white;
    border-radius: 6px;
}

.srec-summary-item {
    text-align: center;
    padding: 10px;
}

.srec-summary-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.srec-summary-item span {
    font-size: 20px;
    font-weight: 700;
}

/* Table Styles */
.srec-entries-section h3 {
    color: #ff1716;
    margin-bottom: 15px;
    font-size: 24px;
}

.srec-table-container {
    overflow-x: auto;
    margin-bottom: 25px;
}

.srec-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.srec-table th {
    background-color: #ff1716;
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.srec-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e1e5e9;
    font-size: 14px;
}

.srec-table tr:hover {
    background-color: #f8f9fa;
}

.srec-table .action-btn {
    padding: 5px 10px;
    font-size: 12px;
    margin: 2px;
    border-radius: 4px;
}

/* Export Section */
.srec-export-section {
    text-align: center;
    padding-top: 25px;
    border-top: 2px solid #e1e5e9;
}

.srec-export-section h3 {
    color: #ff1716;
    margin-bottom: 20px;
    font-size: 24px;
}

.srec-export-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Alerts */
.srec-alerts {
    margin-bottom: 20px;
}

.srec-alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}

.srec-alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.srec-alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f1aeb5;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .srec-container {
        margin: 10px;
        padding: 15px;
    }
    
    .srec-global-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .srec-global-settings label {
        min-width: auto;
        margin-bottom: 8px;
    }
    
    .srec-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .srec-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .srec-export-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .srec-btn {
        width: 200px;
    }
}

@media print {
    .srec-global-settings,
    .srec-form-container,
    .srec-export-section {
        display: none;
    }
    
    .srec-container {
        box-shadow: none;
        border: none;
    }
}
