.app{width:100%;min-height:100vh}.header{text-align:center;padding:1.5rem 1rem;color:#fff}.header h1{font-size:1.5rem;margin-bottom:.5rem;text-shadow:2px 2px 4px rgba(0,0,0,.3);font-weight:600}.header p{font-size:.9rem;opacity:.9}.container{max-width:100%;padding:1rem;display:flex;flex-direction:column;gap:1rem}.card{background:#fff;border-radius:12px;padding:1.25rem;box-shadow:0 8px 25px #0000001a;transition:transform .3s ease,box-shadow .3s ease}.card:hover{transform:translateY(-2px);box-shadow:0 12px 35px #00000026}.card h2{color:#4a5568;margin-bottom:1rem;font-size:1.2rem;font-weight:600}.data-status{border:2px solid #667eea;background:linear-gradient(135deg,#f7fafc,#edf2f7)}.status-info{display:flex;flex-direction:column;gap:.75rem}.status-indicator{display:flex;align-items:center;justify-content:space-between;font-weight:600}.status-dot{width:12px;height:12px;border-radius:50%;animation:pulse 2s infinite}.status-dot.connected{background:#38a169;animation:none}.status-dot.disconnected{background:#e53e3e}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.auto-update-info{display:flex;flex-direction:column;gap:.25rem;font-size:.75rem;color:#718096}.sync-status{color:#667eea;font-weight:500}.rates-grid{display:grid;grid-template-columns:1fr;gap:.75rem}.rate-input{display:flex;flex-direction:column;gap:.25rem}.rate-input label{font-weight:600;color:#4a5568;font-size:.85rem}.rate-input input{padding:.75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;transition:border-color .3s ease;text-align:center}.rate-input input:focus{outline:none;border-color:#667eea}.rate-input input:disabled{background:#f7fafc;cursor:not-allowed}.form-row{display:grid;grid-template-columns:1fr;gap:.75rem;margin-bottom:.75rem}.form-group{display:flex;flex-direction:column;gap:.25rem}.form-group label{font-weight:600;color:#4a5568;font-size:.85rem}.form-group input,.form-group select{padding:.75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;transition:border-color .3s ease;min-height:44px}.form-group input:focus,.form-group select:focus{outline:none;border-color:#667eea}.checkbox-group{display:flex;flex-direction:column;gap:.5rem}.checkbox-group label{display:flex;align-items:center;gap:.5rem;font-weight:400;cursor:pointer;min-height:44px}.checkbox-group input[type=checkbox]{width:auto;min-height:auto;margin:0}.btn-primary,.btn-secondary{padding:.875rem 1.25rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;width:100%;min-height:44px}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.btn-secondary{background:#f7fafc;color:#4a5568;border:2px solid #e2e8f0}.btn-secondary:hover{background:#edf2f7;border-color:#cbd5e0}.filter-row{display:flex;flex-direction:column;gap:.75rem}.filter-group{display:flex;flex-direction:column;gap:.25rem}.filter-group label{font-weight:600;color:#4a5568;font-size:.85rem}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-bottom:1.25rem}.stat-card{background:linear-gradient(135deg,#f7fafc,#edf2f7);padding:1rem;border-radius:12px;text-align:center;border:2px solid #e2e8f0}.stat-card h3{color:#4a5568;font-size:.75rem;margin-bottom:.5rem;text-transform:uppercase;letter-spacing:.5px;font-weight:600}.stat-value{font-size:1.25rem;font-weight:700;color:#2d3748}.stat-value.positive{color:#38a169}.stat-value.negative{color:#e53e3e}.settlement-section{background:#f7fafc;padding:1rem;border-radius:12px;border:2px solid #e2e8f0;margin-bottom:1.25rem}.settlement-section h3{color:#4a5568;margin-bottom:.75rem;font-size:1rem;font-weight:600}.settlement-details{display:flex;flex-direction:column;gap:.5rem}.settlement-item{background:#fff;padding:.75rem;border-radius:8px;font-weight:500;font-size:.85rem}.settlement-item.debt{border-right:4px solid #e53e3e;background:#fed7d7}.dues-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px #0000001a}.dues-table th,.dues-table td{padding:.75rem 1rem;text-align:right;border-bottom:1px solid #e2e8f0}.dues-table th{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-weight:600;font-size:.85rem}.dues-table tbody tr:hover{background:#f7fafc}.dues-table .debtor-cell{color:#e53e3e;font-weight:600}.dues-table .creditor-cell{color:#38a169;font-weight:600}.dues-table .amount-cell{color:#e53e3e;font-weight:700;font-size:1rem}.dues-table tfoot{background:#f7fafc}.dues-table tfoot td{border-bottom:none;font-size:.95rem}.no-debts{text-align:center;padding:1.5rem;background:#c6f6d5;border-radius:8px;color:#276749;font-weight:600}.shared-payment-label{display:flex!important;align-items:center;gap:.75rem;cursor:pointer;padding:.75rem 1rem;background:linear-gradient(135deg,#e6fffa,#b2f5ea);border:2px solid #38b2ac;border-radius:8px;transition:all .3s ease}.shared-payment-label:hover{background:linear-gradient(135deg,#b2f5ea,#81e6d9)}.shared-payment-label input[type=checkbox]{width:20px;height:20px;accent-color:#38b2ac}.shared-payment-text{font-weight:600;color:#234e52;font-size:.95rem}.debt-breakdown{background:#f7fafc;padding:1rem;border-radius:12px;border:2px solid #e2e8f0}.debt-breakdown h3{color:#4a5568;margin-bottom:.75rem;font-size:1rem;font-weight:600}.debt-table{display:flex;flex-direction:column;gap:.75rem}.debt-row{background:#fff;padding:.75rem;border-radius:8px;border:1px solid #e2e8f0}.debt-person-header{font-weight:600;font-size:.9rem;color:#2d3748;margin-bottom:.5rem;padding-bottom:.25rem;border-bottom:1px solid #e2e8f0}.debt-details{display:flex;flex-direction:column;gap:.25rem;font-size:.8rem;color:#4a5568}.debt-details .positive{color:#2f855a;font-weight:600}.debt-details .negative{color:#c53030;font-weight:600}.expenses-header{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:2px solid #e2e8f0}.expenses-header span{font-weight:600;color:#4a5568}.export-buttons{display:flex;gap:.5rem;flex-wrap:wrap}.export-buttons .btn-secondary{flex:1;min-width:120px;font-size:.85rem;padding:.5rem .75rem;min-height:36px}.expenses-container{display:flex;flex-direction:column;gap:.75rem}.expense-item{background:#f7fafc;padding:1rem;border-radius:12px;border:2px solid #e2e8f0;transition:all .3s ease}.expense-item:hover{border-color:#667eea;transform:translate(5px)}.expense-header{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem}.expense-title{font-size:.95rem;font-weight:600;color:#2d3748}.expense-amount{font-size:1rem;font-weight:700;color:#667eea}.expense-amount small{display:block;font-size:.8rem;color:#718096;font-weight:400;margin-top:.25rem}.expense-details{display:grid;grid-template-columns:1fr;gap:.5rem;font-size:.8rem;color:#4a5568}.expense-detail{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.category-badge{display:inline-block;padding:.25rem .5rem;background:#667eea;color:#fff;border-radius:12px;font-size:.75rem;font-weight:500}.beneficiary-tag{background:#e2e8f0;color:#4a5568;padding:.125rem .375rem;border-radius:12px;font-size:.7rem;margin-left:.25rem}.payment-status{display:inline-block;padding:.125rem .375rem;border-radius:10px;font-size:.7rem;font-weight:500;margin-left:.25rem}.payment-status.paid{background:#c6f6d5;color:#2f855a}.payment-status.due{background:#fed7d7;color:#c53030}.payment-status.partial{background:#faf089;color:#744210}.delete-btn{background:#e53e3e;color:#fff;border:none;padding:.375rem .75rem;border-radius:5px;cursor:pointer;font-size:.75rem;transition:background .3s ease;min-height:32px}.delete-btn:hover{background:#c53030}.no-expenses{text-align:center;color:#718096;font-style:italic;padding:2rem 1rem;font-size:.9rem}.pay-due-form{border:2px solid #38a169;background:linear-gradient(135deg,#f0fff4,#c6f6d5)}.pay-due-form h2{color:#276749}.btn-pay-due{padding:.875rem 1.25rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;width:100%;min-height:44px;background:linear-gradient(135deg,#38a169,#2f855a);color:#fff}.btn-pay-due:hover{transform:translateY(-2px);box-shadow:0 5px 15px #38a16966}.expense-item.payment-item{border-right:4px solid #38a169;background:linear-gradient(135deg,#f0fff4,#e6ffed)}.expense-item.shared-item{border-right:4px solid #38b2ac;background:linear-gradient(135deg,#e6fffa,#b2f5ea)}.notification{position:fixed;top:20px;right:20px;background:#38a169;color:#fff;padding:.75rem 1.25rem;border-radius:8px;z-index:1000;box-shadow:0 4px 12px #00000026;font-weight:600;animation:slideIn .3s ease}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@media(min-width:768px){.header h1{font-size:2rem;margin-bottom:.75rem}.header p{font-size:1.1rem}.container{max-width:1200px;margin:0 auto;padding:1.5rem;gap:1.5rem}.card{padding:1.5rem}.card h2{font-size:1.4rem;margin-bottom:1.25rem}.rates-grid{grid-template-columns:repeat(3,1fr);gap:1rem}.form-row{grid-template-columns:repeat(2,1fr);gap:1rem;margin-bottom:1rem}.checkbox-group{flex-direction:row;gap:1rem}.btn-primary,.btn-secondary{width:auto;padding:.75rem 1.5rem}.filter-row{flex-direction:row;align-items:flex-end;gap:1rem}.filter-group{min-width:150px}.stats-grid{grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.5rem}.stat-card{padding:1.25rem}.stat-card h3{font-size:.85rem;margin-bottom:.75rem}.stat-value{font-size:1.6rem}.settlement-section,.debt-breakdown{padding:1.25rem}.expenses-header{flex-direction:row;justify-content:space-between;align-items:center}.expense-item{padding:1.25rem}.expense-header{flex-direction:row;justify-content:space-between;align-items:flex-start}.expense-title{font-size:1.05rem}.expense-amount{font-size:1.1rem}.expense-details{grid-template-columns:repeat(2,1fr);font-size:.85rem}.export-buttons .btn-secondary{flex:none;min-width:100px}}@media(min-width:1024px){.header h1{font-size:2.5rem}.header p{font-size:1.2rem}.expense-details{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;color:#333}#root{width:100%}
