/* Custom styles for the application */ :root { --primary-color: #4285F4; --secondary-color: #FBBC05; --accent-color: #34A853; --tertiary-color: #EA4335; --neutral-light-gray: #F8F9FA; --neutral-dark-text: #202124; --font-headings: 'Poppins', sans-serif; --font-body: 'Roboto', sans-serif; } body { font-family: var(--font-body); color: var(--neutral-dark-text); background-color: var(--neutral-light-gray); line-height: 1.6; } h1, h2, h3, h4, h5, h6 { font-family: var(--font-headings); font-weight: 700; } .btn { font-family: var(--font-headings); font-weight: 600; border-radius: 8px; padding: 12px 28px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; } .btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; } .btn-primary:hover { background-color: #3367D6; border-color: #3367D6; } .btn-secondary { background-color: var(--secondary-color); border-color: var(--secondary-color); color: var(--neutral-dark-text); } .btn-secondary:hover { background-color: #F9A825; border-color: #F9A825; } .btn-tertiary { background-color: var(--tertiary-color); border-color: var(--tertiary-color); color: #fff; } .btn-tertiary:hover { background-color: #D93025; border-color: #D93025; } .login-container { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; width: 100%; } .login-branding { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: #fff; display: flex; align-items: center; justify-content: center; padding: 40px; text-align: center; } .login-branding-content h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 20px; } .login-branding-content p { font-size: 1.1rem; max-width: 400px; margin: 0 auto; } .login-form-wrapper { display: flex; align-items: center; justify-content: center; padding: 40px; background-color: #fff; } .login-form-container { max-width: 400px; width: 100%; } .login-form-container h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; color: var(--neutral-dark-text); } .login-form { margin-top: 30px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--neutral-dark-text); } .form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s ease; } .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1); } .btn-block { width: 100%; padding: 15px; font-size: 1rem; } .login-form-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; } /* Student Dashboard */ .dashboard-container { display: flex; min-height: 100vh; } .sidebar { width: 260px; background-color: var(--neutral-dark-text); color: #fff; display: flex; flex-direction: column; position: fixed; height: 100%; } .sidebar-header { padding: 25px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); } .sidebar-header h3 { color: #fff; font-weight: 600; } .sidebar-nav { flex-grow: 1; } .sidebar-nav a { display: block; padding: 15px 20px; color: #fff; text-decoration: none; font-weight: 500; transition: background-color 0.3s ease; } .sidebar-nav a:hover, .sidebar-nav a.active { background-color: rgba(255,255,255,0.1); } .sidebar-nav a i { margin-right: 15px; width: 20px; text-align: center; } .sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); } .logout-btn { display: block; text-align: center; background-color: var(--primary-color); color: #fff; padding: 10px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background-color 0.3s ease; } .logout-btn:hover { background-color: #3367D6; } .main-content { margin-left: 260px; flex-grow: 1; background-color: var(--neutral-light-gray); padding: 30px; } .header { background-color: #fff; padding: 30px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); } .header h2 { font-size: 2.2rem; margin-bottom: 5px; } .assignments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; } .assignment-card { background-color: #fff; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; } .assignment-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); } .assignment-card-header { padding: 20px; border-bottom: 1px solid #eee; } .assignment-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0; } .assignment-due-date { font-size: 0.85rem; color: #5f6368; } .assignment-card-body { padding: 20px; flex-grow: 1; } .assignment-card-footer { padding: 0 20px 20px; } .empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background-color: #fff; border-radius: 12px; } .empty-state i { font-size: 4rem; color: var(--accent-color); margin-bottom: 20px; } .empty-state h4 { font-size: 1.5rem; margin-bottom: 10px; } /* Assignment Detail */ .exercises-section { max-width: 900px; } .exercise-list { display: flex; flex-direction: column; gap: 30px; } .exercise-card { background-color: #fff; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); } .exercise-card-header { padding: 20px; border-bottom: 1px solid #eee; background-color: #fafafa; } .exercise-card-header h4 { margin: 0; font-size: 1.3rem; } .exercise-card-body { padding: 25px; } .exercise-question { font-size: 1.1rem; margin-bottom: 25px; } .exercise-actions { margin-top: 20px; display: flex; gap: 15px; flex-wrap: wrap; } .hint-container .alert { margin-top: 20px; } /* Responsive adjustments */ @media (max-width: 992px) { .login-container { grid-template-columns: 1fr; } .login-branding { display: none; } .login-form-wrapper { padding: 20px; } .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; } .main-content { margin-left: 0; } .sidebar-header { display: none; } .sidebar-nav { display: flex; flex-grow: 1; justify-content: space-around; } .sidebar-footer { display: none; /* Or adjust to a dropdown menu */ } }