.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}.login-box{background:white;padding:2rem;border-radius:10px;box-shadow:0 10px 25px #0003;width:100%;max-width:400px}.login-box h1{text-align:center;margin-bottom:2rem;color:#333}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;color:#555;font-weight:500}.form-group input{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:5px;font-size:1rem;transition:border-color .3s}.form-group input:focus{outline:none;border-color:#667eea}.error-message{color:#e74c3c;margin-bottom:1rem;text-align:center;font-size:.9rem}.login-button{width:100%;padding:.75rem;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;border:none;border-radius:5px;font-size:1rem;font-weight:600;cursor:pointer;transition:opacity .3s}.login-button:hover:not(:disabled){opacity:.9}.login-button:disabled{opacity:.6;cursor:not-allowed}.table-container{padding:2rem;max-width:100%;overflow-x:auto}.table-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.table-header h1{color:#333}.logout-button{padding:.5rem 1rem;background:#e74c3c;color:#fff;border:none;border-radius:5px;cursor:pointer;font-size:.9rem;transition:background .3s}.logout-button:hover{background:#c0392b}.table-wrapper{background:white;border-radius:8px;box-shadow:0 2px 8px #0000001a;overflow-x:auto}.gift-table{width:100%;border-collapse:collapse;table-layout:auto}.gift-table th,.gift-table td{border:1px solid #ddd;padding:.5rem;text-align:left}.gift-table th{background:#f8f9fa;font-weight:600;position:relative}.friend-name-header{background:#e9ecef;white-space:nowrap}.column-header{position:relative;white-space:nowrap}.column-header-content{display:inline-flex;align-items:center;gap:.5rem}.column-name-input{border:none;background:transparent;font-weight:600;padding:.25rem;border-bottom:1px solid transparent;transition:border-color .3s;max-width:80px}.column-name-input:focus{outline:none;border-bottom-color:#667eea}.stats-toggle{display:flex;align-items:center;cursor:pointer;flex-shrink:0}.stats-toggle input{cursor:pointer}.delete-column-button{background:#e74c3c;color:#fff;border:none;border-radius:3px;width:20px;height:20px;cursor:pointer;font-size:1.2rem;line-height:1;padding:0;display:flex;align-items:center;justify-content:center;transition:background .3s}.delete-column-button:hover{background:#c0392b}.column-header{position:relative}.add-column-indicator{position:absolute;right:-15px;top:50%;transform:translateY(-50%);width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10}.add-column-button{width:24px;height:24px;background:#667eea;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:700;transition:transform .3s}.add-column-button:hover{transform:scale(1.1)}.stats-row{background:#e9ecef;font-weight:600}.purchased-row{background:#fff3cd;font-weight:500}.purchased-row-label{background:#fff3cd;font-weight:600;color:#856404;white-space:nowrap}.to-purchase-row{background:#d1ecf1;font-weight:500}.to-purchase-row-label{background:#d1ecf1;font-weight:600;color:#0c5460;white-space:nowrap}.to-purchase-cell{background:#d1ecf1;font-weight:600;color:#0c5460;text-align:center}.add-column-gap-header{min-width:50px;background:#f0f0f0;cursor:pointer;text-align:center}.add-column-gap-header:hover{background:#e0e0e0}.stat-item-empty{color:#999;font-size:.85rem;font-style:italic}.friend-name-cell{background:#f8f9fa;position:relative;white-space:nowrap}.cell-input{width:100%;border:none;background:transparent;padding:.25rem;font-size:.9rem;box-sizing:border-box}.friend-name-cell .cell-input{min-width:100px}.cell-input:focus{outline:2px solid #667eea;border-radius:3px}.data-cell{cursor:pointer;position:relative;white-space:nowrap}.data-cell:hover{background:#f0f0f0}.cell-value{min-height:1.2em}.delete-row-button{position:absolute;top:.25rem;right:.25rem;background:#e74c3c;color:#fff;border:none;border-radius:3px;width:20px;height:20px;cursor:pointer;font-size:1.2rem;line-height:1;padding:0;display:flex;align-items:center;justify-content:center;transition:background .3s;opacity:.7}.friend-name-cell:hover .delete-row-button{opacity:1}.delete-row-button:hover{background:#c0392b;opacity:1}.stats-cell{background:#f8f9fa;font-size:.9rem}.stat-item{margin-bottom:.25rem}.stat-item:last-child{margin-bottom:0}.stats-row-label{background:#e9ecef;font-weight:600;white-space:nowrap}.add-row-gap{height:30px;background:#f0f0f0}.add-row-gap-cell{padding:0;background:#f0f0f0;cursor:pointer;text-align:center;border:none}.add-row-gap-cell:hover{background:#e0e0e0}.add-row-button{min-width:24px;height:24px;background:#667eea;color:#fff;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;font-weight:700;padding:0 .5rem;transition:transform .3s}.add-row-button:hover{transform:scale(1.1)}.add-row-form{background:#f0f0f0}.add-row-form-content{display:flex;align-items:center;gap:.5rem;padding:.5rem}.add-row-input{flex:1;padding:.5rem;border:1px solid #ddd;border-radius:5px;font-size:.9rem}.add-row-input:focus{outline:none;border-color:#667eea}.add-row-submit,.add-row-cancel{padding:.5rem 1rem;border:none;border-radius:5px;cursor:pointer;font-size:.9rem;transition:background .3s}.add-row-submit{background:#667eea;color:#fff}.add-row-submit:hover{background:#5568d3}.add-row-cancel{background:#95a5a6;color:#fff}.add-row-cancel:hover{background:#7f8c8d}.add-column-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:white;padding:2rem;border-radius:10px;min-width:300px}.modal-content h3{margin-bottom:1rem;color:#333}.modal-input{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:5px;font-size:1rem;margin-bottom:1rem}.modal-input:focus{outline:none;border-color:#667eea}.modal-buttons{display:flex;gap:.5rem;justify-content:flex-end}.modal-button{padding:.5rem 1rem;border:none;border-radius:5px;cursor:pointer;font-size:.9rem;transition:background .3s}.modal-button:not(.cancel){background:#667eea;color:#fff}.modal-button:not(.cancel):hover:not(:disabled){background:#5568d3}.modal-button:not(.cancel):disabled{background:#ccc;cursor:not-allowed}.modal-button.cancel{background:#95a5a6;color:#fff}.modal-button.cancel:hover{background:#7f8c8d}.loading{display:flex;justify-content:center;align-items:center;min-height:100vh;font-size:1.2rem;color:#666}*{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-color:#f5f5f5}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
