/* Cash Flow Management - Professional Styling */
/* Sprint 4.1 - Commercial Migration to LA CRÈME Standards */

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.cash-flow-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 20px; 
}

/* Header Section */
.header-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header-section h1 {
    font-size: 3rem;
    font-weight: 300;
    color: #1d1d1f;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.header-section p {
    color: #86868b;
    font-size: 1.2rem;
    margin: 0;
}

/* Status Cards */
.status-card { 
    background: white; 
    border-radius: 20px; 
    padding: 30px; 
    margin-bottom: 30px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.status-open { 
    border-left: 6px solid #30d158; 
}

.status-closed { 
    border-left: 6px solid #ff3b30; 
}

/* Grid Layouts */
.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Stat Boxes */
.stat-box { 
    text-align: center; 
    padding: 20px; 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: all 0.2s;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-value { 
    font-size: 2rem; 
    font-weight: 700; 
    color: #1d1d1f;
    margin-bottom: 5px;
}

.stat-label { 
    font-size: 0.85rem; 
    color: #86868b; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Buttons */
.btn { 
    padding: 12px 24px; 
    border: none; 
    border-radius: 12px; 
    cursor: pointer; 
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary { 
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); 
    color: white; 
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

.btn-success { 
    background: linear-gradient(135deg, #30d158 0%, #28a745 100%); 
    color: white; 
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.3);
}

.btn-danger { 
    background: linear-gradient(135deg, #ff3b30 0%, #dc3545 100%); 
    color: white; 
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220,53,69,0.3);
}

.btn-secondary { 
    background: #f2f2f7; 
    color: #1d1d1f; 
}

.btn-secondary:hover {
    background: #e5e5ea;
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 100;
}

.back-btn:hover {
    background: white;
    transform: translateY(-2px);
}

/* Transaction List */
.transaction-list { 
    max-height: 400px; 
    overflow-y: auto; 
}

.transaction-item { 
    padding: 15px; 
    border-bottom: 1px solid #f2f2f7; 
    display: flex; 
    justify-content: space-between;
    transition: all 0.2s;
}

.transaction-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

/* Modals */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.7); 
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content { 
    background: white; 
    margin: 50px auto; 
    padding: 0;
    max-width: 500px; 
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-header { 
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 30px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header.success-header {
    background: linear-gradient(135deg, #30d158 0%, #28a745 100%);
}

.modal-body {
    padding: 30px;
}

.close { 
    font-size: 28px; 
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Forms */
.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600;
    color: #1d1d1f;
}

.form-group input, 
.form-group select, 
.form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid #e5e5ea; 
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

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

/* Alerts & Warnings */
.alert-warning {
    background: #fff3cd;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.variance-warning {
    padding: 15px;
    background: #fff3cd;
    border-radius: 12px;
    margin-bottom: 15px;
}

.variance-positive {
    color: #30d158;
}

.variance-negative {
    color: #ff3b30;
}

/* Utility Classes */
.hidden { 
    display: none; 
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 2rem;
    }
    
    .grid-2,
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
}
