:root { --primary: #2c3e50; --secondary: #3498db; --income: #2ecc71; --expense: #e74c3c; --light: #ecf0f1; --dark: #34495e; --gray: #7f8c8d; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c); color: var(--dark); padding: 20px; min-height: 100vh; } .container { background: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); overflow: hidden; max-width: 1200px; margin: 0 auto; } .form-container { max-width: 600px; padding: 30px; } header { background: var(--primary); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; } header h1 { display: flex; align-items: center; gap: 15px; font-size: 1.8rem; } .summary { display: flex; gap: 20px; margin-top: 15px; width: 100%; } .summary-item { flex: 1; background: white; border-radius: 10px; padding: 15px; text-align: center; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); } .summary-item.income { border-top: 5px solid var(--income); } .summary-item.expense { border-top: 5px solid var(--expense); } .summary-item.balance { border-top: 5px solid var(--secondary); } .summary-item span { display: block; color: var(--gray); font-size: 0.9rem; margin-bottom: 5px; } .summary-item strong { font-size: 1.5rem; display: block; } .controls { padding: 20px; background: var(--light); border-bottom: 1px solid #ddd; } .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; text-decoration: none; font-weight: 500; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 1rem; } .add-btn { background: var(--secondary); color: white; } .add-btn:hover { background: #2980b9; } .back-btn { background: var(--gray); color: white; } .save-btn { background: var(--income); color: white; padding: 12px 25px; font-size: 1.1rem; } .back-btn:hover { background: #666; } section { padding: 20px; } h2 { margin-bottom: 20px; color: var(--primary); border-bottom: 2px solid var(--light); padding-bottom: 10px; } .category-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin-bottom: 30px; } .category-item { background: white; border-radius: 10px; padding: 15px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); display: flex; justify-content: space-between; align-items: center; border-left: 5px solid var(--expense); } .category-item span.amount { font-weight: bold; font-size: 1.2rem; } table { width: 100%; border-collapse: collapse; margin-top: 20px; } table th, table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; } table th { background: var(--primary); color: white; font-weight: 500; } table tbody tr:hover { background: rgba(52, 152, 219, 0.05); } table .income { color: var(--income); font-weight: bold; } table .expense { color: var(--expense); font-weight: bold; } .actions { display: flex; gap: 10px; } .btn.edit-btn { background: #f39c12; color: white; padding: 8px 12px; } .btn.delete-btn { background: var(--expense); color: white; padding: 8px 12px; } .btn.edit-btn:hover { background: #e67e22; } .btn.delete-btn:hover { background: #c0392b; } .empty { text-align: center; padding: 20px; color: var(--gray); font-style: italic; } footer { text-align: center; padding: 20px; color: var(--gray); font-size: 0.9rem; border-top: 1px solid #eee; } .tip { font-style: italic; margin-top: 10px; color: var(--primary); } /* Формы */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--dark); } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; } .form-group textarea { min-height: 100px; resize: vertical; } .radio-group { display: flex; gap: 15px; } .radio-label { display: flex; align-items: center; cursor: pointer; } .radio-custom { display: inline-block; padding: 10px 20px; border-radius: 50px; font-weight: 500; transition: all 0.3s ease; } .radio-custom.income { background: rgba(46, 204, 113, 0.2); color: var(--income); } .radio-custom.expense { background: rgba(231, 76, 60, 0.2); color: var(--expense); } input[type="radio"] { display: none; } input[type="radio"]:checked + .radio-custom.income { background: var(--income); color: white; } input[type="radio"]:checked + .radio-custom.expense { background: var(--expense); color: white; } /* Адаптивность */ @media (max-width: 768px) { .summary { flex-direction: column; } table { display: block; overflow-x: auto; } .category-list { grid-template-columns: 1fr; } } /* Стили для аутентификации */ .auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c); } .auth-card { background: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); padding: 30px; width: 100%; max-width: 500px; } .auth-card h1 { text-align: center; margin-bottom: 30px; color: #2c3e50; display: flex; align-items: center; justify-content: center; gap: 15px; } .auth-links { margin-top: 20px; text-align: center; } .auth-links a { color: #3498db; text-decoration: none; } .auth-links a:hover { text-decoration: underline; } .login-btn { background: #3498db; color: white; width: 100%; padding: 12px; font-size: 1.1rem; } .register-btn { background: #2ecc71; color: white; width: 100%; padding: 12px; font-size: 1.1rem; } .remember { display: flex; align-items: center; gap: 10px; } /* Меню пользователя */ .user-menu { position: absolute; top: 20px; right: 20px; display: flex; align-items: center; gap: 15px; color: white; font-weight: 500; } .dropbtn { background: rgba(255, 255, 255, 0.2); color: white; border: none; border-radius: 50px; padding: 8px 15px; cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 1rem; } .dropdown { position: relative; display: inline-block; } .dropdown-content { display: none; position: absolute; right: 0; background: white; min-width: 160px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 1; border-radius: 5px; overflow: hidden; } .dropdown-content a { color: #2c3e50; padding: 12px 16px; text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; } .dropdown-content a:hover { background: #f5f5f5; } .dropdown:hover .dropdown-content { display: block; }