/* ======================================== General Styles & Reset ======================================== */ * { margin: 0; padding: 0; box-sizing: border-box; } html { overflow-y: auto; overflow-x: hidden; height: 100%; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: #333; line-height: 1.6; overflow-y: auto; overflow-x: hidden; } /* Body for login/register pages */ body:not(.dashboard) { display: flex; justify-content: center; align-items: center; } .container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 20px; } /* ======================================== Card Styles ======================================== */ .card { background: white; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); padding: 35px; margin: 20px auto; transition: transform 0.3s ease, box-shadow 0.3s ease; } .card:hover { transform: translateY(-2px); box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2); } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; } .card-header h3 { font-size: 22px; font-weight: 600; color: #333; margin: 0; } .card-body { padding: 0; } .card-title { font-size: 28px; font-weight: 700; margin-bottom: 25px; color: #2d3748; text-align: center; } /* ======================================== Form Styles ======================================== */ .form-group { margin-bottom: 22px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #2d3748; font-size: 14px; } .form-control, select.form-control, textarea.form-control { width: 100%; padding: 12px 15px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 15px; color: #2d3748; background-color: #fff; transition: all 0.3s ease; font-family: inherit; } .form-control:focus, select.form-control:focus, textarea.form-control:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); background-color: #fff; } .form-control:disabled { background-color: #f7fafc; cursor: not-allowed; opacity: 0.6; } select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; } textarea.form-control { resize: vertical; min-height: 100px; } .form-row { display: flex; gap: 20px; } .form-row .form-group { flex: 1; } /* ======================================== Button Styles ======================================== */ .btn { padding: 12px 28px; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-block; text-align: center; text-decoration: none; line-height: 1.5; } .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4); } .btn-success { background: #48bb78; color: white; } .btn-success:hover { background: #38a169; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(72, 187, 120, 0.4); } .btn-danger { background: #f56565; color: white; } .btn-danger:hover { background: #e53e3e; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 101, 101, 0.4); } .btn-secondary { background: #718096; color: white; } .btn-secondary:hover { background: #4a5568; transform: translateY(-2px); } .btn-info { background: #4299e1; color: white; } .btn-info:hover { background: #3182ce; transform: translateY(-2px); } .btn-warning { background: #ed8936; color: white; } .btn-warning:hover { background: #dd6b20; transform: translateY(-2px); } .btn-block { width: 100%; display: block; } .btn-sm { padding: 8px 16px; font-size: 13px; } .btn-lg { padding: 16px 36px; font-size: 17px; } .btn:disabled { opacity: 0.6; cursor: not-allowed; } .btn:disabled:hover { transform: none; box-shadow: none; } /* ======================================== Alert Styles ======================================== */ .alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid; font-size: 15px; display: flex; align-items: center; gap: 12px; } .alert-success { background-color: #f0fdf4; border-color: #48bb78; color: #22543d; } .alert-error { background-color: #fff5f5; border-color: #f56565; color: #742a2a; } .alert-warning { background-color: #fffbeb; border-color: #ed8936; color: #7c2d12; } .alert-info { background-color: #eff6ff; border-color: #4299e1; color: #1e3a8a; } /* ======================================== Table Styles ======================================== */ .table-responsive { overflow-x: auto; margin-top: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } table { width: 100%; border-collapse: collapse; background: white; } table thead { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } table th { padding: 16px 12px; text-align: left; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; } table td { padding: 14px 12px; border-bottom: 1px solid #e2e8f0; color: #2d3748; font-size: 14px; } table tbody tr { transition: background-color 0.2s ease; } table tbody tr:hover { background-color: #f7fafc; } table tbody tr:last-child td { border-bottom: none; } /* ======================================== Navigation Bar ======================================== */ .navbar { background: white; padding: 0; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 1000; } .navbar-content { max-width: 1400px; margin: 0 auto; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; } .navbar-brand { font-size: 22px; font-weight: 700; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .navbar-menu { display: flex; gap: 30px; list-style: none; align-items: center; } .navbar-menu li { margin: 0; } .navbar-menu a { text-decoration: none; color: #2d3748; font-weight: 500; font-size: 15px; transition: color 0.3s ease; padding: 8px 0; position: relative; } .navbar-menu a:after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); transition: width 0.3s ease; } .navbar-menu a:hover { color: #667eea; } .navbar-menu a:hover:after { width: 100%; } .user-info { display: flex; align-items: center; gap: 15px; } .user-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; } .user-info span { font-weight: 500; color: #2d3748; } /* ======================================== Dashboard Styles ======================================== */ .dashboard { background: #f7fafc; min-height: 100vh; } .dashboard .container { padding-top: 30px; padding-bottom: 30px; } .dashboard h1 { color: #2d3748; font-size: 32px; font-weight: 700; margin-bottom: 30px; } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 30px; } .stat-card { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; border-left: 4px solid; position: relative; overflow: hidden; } .stat-card:nth-child(1) { border-left-color: #667eea; } .stat-card:nth-child(2) { border-left-color: #48bb78; } .stat-card:nth-child(3) { border-left-color: #ed8936; } .stat-card:nth-child(4) { border-left-color: #f56565; } .stat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); } .stat-card:before { content: ''; position: absolute; top: 0; right: 0; width: 100px; height: 100px; background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%); border-radius: 50%; transform: translate(30%, -30%); } .stat-icon { font-size: 36px; margin-bottom: 12px; display: block; } .stat-card h3 { color: #718096; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; } .stat-value { font-size: 32px; font-weight: 700; color: #2d3748; line-height: 1; } /* ======================================== Badge Styles ======================================== */ .badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .badge-success { background-color: #c6f6d5; color: #22543d; } .badge-warning { background-color: #fef3c7; color: #7c2d12; } .badge-danger { background-color: #fed7d7; color: #742a2a; } .badge-info { background-color: #dbeafe; color: #1e3a8a; } .badge-secondary { background-color: #e2e8f0; color: #4a5568; } /* ======================================== Modal Styles ======================================== */ .modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); } .modal.active { display: flex; align-items: center; justify-content: center; } .modal-content { background-color: white; border-radius: 12px; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: modalSlideIn 0.3s ease-out; } @keyframes modalSlideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .modal-header { padding: 25px 30px; border-bottom: 2px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; } .modal-header h3 { margin: 0; font-size: 22px; font-weight: 600; color: #2d3748; } .modal-close { background: none; border: none; font-size: 28px; color: #718096; cursor: pointer; transition: color 0.3s ease; line-height: 1; } .modal-close:hover { color: #f56565; } .modal-body { padding: 25px 30px; } .modal-footer { padding: 20px 30px; border-top: 2px solid #f0f0f0; display: flex; gap: 12px; justify-content: flex-end; } /* ======================================== Utility Classes ======================================== */ .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } .text-link { color: #667eea; text-decoration: none; font-weight: 500; transition: color 0.3s ease; } .text-link:hover { color: #764ba2; text-decoration: underline; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .pt-1 { padding-top: 8px; } .pt-2 { padding-top: 16px; } .pt-3 { padding-top: 24px; } .pb-1 { padding-bottom: 8px; } .pb-2 { padding-bottom: 16px; } .pb-3 { padding-bottom: 24px; } /* ======================================== Grid System ======================================== */ .row { display: flex; flex-wrap: wrap; margin: -15px; } .col, .col-md-12, .col-md-6, .col-md-4, .col-md-3 { padding: 15px; } .col { flex: 1; } .col-md-12 { flex: 0 0 100%; max-width: 100%; } .col-md-6 { flex: 0 0 50%; max-width: 50%; } .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; } .col-md-3 { flex: 0 0 25%; max-width: 25%; } /* ======================================== Auth Container (Login/Register) ======================================== */ .auth-container { max-width: 480px; width: 90%; margin: 50px auto; } .auth-container .card { padding: 40px; } .auth-container .card-title { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px; } /* ======================================== Loading Spinner ======================================== */ .spinner { border: 4px solid #f3f3f3; border-top: 4px solid #667eea; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin: 30px auto; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* ======================================== Responsive Design ======================================== */ @media (max-width: 768px) { .col-md-12, .col-md-6, .col-md-4, .col-md-3 { flex: 0 0 100%; max-width: 100%; } .navbar-content { flex-direction: column; gap: 15px; padding: 15px; } .navbar-menu { flex-direction: column; width: 100%; gap: 10px; } .stats-grid { grid-template-columns: 1fr; } .form-row { flex-direction: column; } .modal-content { width: 95%; } table { font-size: 13px; } table th, table td { padding: 10px 8px; } } @media (max-width: 480px) { .card { padding: 25px 20px; } .auth-container .card { padding: 30px 25px; } .btn { padding: 10px 20px; font-size: 14px; } .stat-card { padding: 20px; } .stat-value { font-size: 28px; } } /* ======================================== Print Styles ======================================== */ @media print { .navbar, .btn, .modal { display: none !important; } body { background: white; } .card { box-shadow: none; border: 1px solid #ddd; } } /* ======================================== Additional Utility Classes ======================================== */ .d-flex { display: flex; } .flex-column { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .gap-10 { gap: 10px; } .gap-15 { gap: 15px; } .gap-20 { gap: 20px; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .align-center { align-items: center; } .w-100 { width: 100%; } .h-100 { height: 100%; } .overflow-hidden { overflow: hidden; } .overflow-auto { overflow: auto; } /* ======================================== Custom Scrollbar ======================================== */ ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 5px; } ::-webkit-scrollbar-thumb { background: #888; border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: #555; } /* ======================================== Focus Visible (Accessibility) ======================================== */ *:focus-visible { outline: 2px solid #667eea; outline-offset: 2px; } button:focus-visible, .btn:focus-visible { outline: 3px solid rgba(102, 126, 234, 0.5); }