/* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's * vendor/assets/stylesheets directory can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the bottom of the * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS * files in this directory. Styles in this file should be added after the last require_* statement. * It is generally better to create a new file per style scope. * *= require_tree . *= require_self */ body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f7f9; color: #333; line-height: 1.5; } h1 { color: #333; text-align: center; } .notice { background-color: #d4edda; color: #155724; padding: 10px; margin-bottom: 20px; border-radius: 4px; border: 1px solid #c3e6cb; } .new-task { margin-bottom: 30px; } .field { display: flex; gap: 10px; } .field input[type="text"] { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; } .field input[type="submit"] { padding: 8px 16px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; } .field input[type="submit"]:hover { background-color: #0056b3; } .tasks-list { margin-top: 20px; } /* Task Cards */ .task-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; margin-bottom: 16px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .task-card:hover { border-color: #007bff44; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); transform: translateY(-2px); } .task-card.completed { background: #f8fafc; opacity: 0.8; } .task-card.completed .task-card-title { text-decoration: line-through; color: #94a3b8; } .task-card-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 15px; } @media (min-width: 768px) { .task-card-header { flex-direction: row; justify-content: space-between; align-items: flex-start; } } .task-card-title-section { display: flex; align-items: center; gap: 12px; flex: 1; } .task-checkbox-wrapper input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; } .task-card-title { margin: 0; font-size: 16px; font-weight: 700; color: #1e293b; } .task-desc-indicator { font-size: 14px; opacity: 0.6; } .task-card-badges { display: flex; gap: 8px; flex-wrap: wrap; } .badge-priority { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; border: 1px solid transparent; text-transform: uppercase; } .badge-status { color: white; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; } .task-card-body { padding: 12px 0; border-top: 1px solid #f1f5f9; } .task-card-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; } .info-item { display: flex; flex-direction: column; gap: 2px; } .info-label { font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; } .info-value { font-size: 13px; font-weight: 600; color: #475569; } .task-card-footer { margin-top: 15px; padding-top: 15px; border-top: 1px solid #f1f5f9; display: flex; justify-content: flex-end; } .task-card-actions { display: flex; gap: 8px; } .btn-task-action { font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 6px; text-decoration: none; background: #f1f5f9; color: #475569; transition: all 0.2s; } .btn-task-action:hover { background: #e2e8f0; color: #1e293b; } .btn-task-action.action-delete { color: #ef4444; background: #fef2f2; } .btn-task-action.action-delete:hover { background: #fee2e2; color: #dc2626; } /* Global States */ .empty-state { text-align: center; color: #6c757d; font-style: italic; margin-top: 40px; } #error_explanation { background-color: #f8d7da; color: #721c24; padding: 10px; margin-bottom: 20px; border-radius: 4px; border: 1px solid #f5c6cb; } #error_explanation h2 { margin-top: 0; font-size: 16px; } #error_explanation ul { margin-bottom: 0; } /* Authentication Styles */ .auth-container { max-width: 400px; margin: 50px auto; padding: 30px; background: white; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .auth-form .field { margin-bottom: 20px; } .auth-form label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; } .auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"], .auth-form select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; } .auth-form .checkbox-field { display: flex; align-items: center; margin-bottom: 20px; } .auth-form .checkbox-field input { margin-right: 8px; } .auth-submit-btn { width: 100%; padding: 12px 20px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; font-weight: 600; transition: background-color 0.2s; } .auth-submit-btn:hover { background-color: #0056b3; } /* Dashboard Styles */ .dashboard-container { max-width: 1200px; margin: 0 auto; padding: 20px; } .dashboard-header { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); color: white; padding: 8px 15px; border-radius: 8px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; text-align: center; } @media (min-width: 768px) { .dashboard-header { flex-direction: row; justify-content: space-between; align-items: center; padding: 8px 20px; text-align: left; } } .dashboard-header h1 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.5px; } @media (min-width: 768px) { .dashboard-header h1 { font-size: 22px; } } .user-welcome { text-align: right; font-size: 13px; } .user-role { background: rgba(255, 255, 255, 0.15); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; } .user-department { font-weight: 600; margin-left: 5px; } .dashboard-content { display: grid; grid-template-columns: 1fr; gap: 30px; } .stats-section { background: white; padding: 24px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 30px; } .stat-card { background: #f8fafc; padding: 20px; border-radius: 10px; text-align: center; border: 1px solid #e2e8f0; transition: transform 0.2s; } .stat-card:hover { transform: translateY(-2px); border-color: #007bff44; } .stat-number { font-size: 32px; font-weight: bold; color: #333; margin-bottom: 5px; } .stat-label { color: #6c757d; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; } .departments-overview, .team-overview { margin-top: 30px; } .departments-overview h3, .team-overview h3 { color: #333; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; } .dept-cards, .member-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; } .dept-card, .member-card { background: #f8fafc; padding: 16px; border-radius: 10px; border: 1px solid #e2e8f0; transition: all 0.2s; } .dept-card:hover, .member-card:hover { background: white; border-color: #007bff44; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); } .dept-card h4, .member-card .member-name { margin: 0 0 10px 0; color: #007bff; font-size: 16px; } .dept-stats, .member-stats { font-size: 14px; } .dept-stats span, .member-stats span { display: block; margin-bottom: 5px; color: #6c757d; } .recent-tasks-section { background: white; padding: 24px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); } .recent-tasks-section h2, .stats-section h2, .new-task-section h2, .tasks-section h2 { margin-top: 0; margin-bottom: 20px; color: #1e293b; font-size: 1.25rem; font-weight: 700; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; } /* Global Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; } .btn-primary { background: #007bff; color: white; } .btn-primary:hover { background: #0056b3; } .btn-success { background: #22c55e; color: white; } .btn-success:hover { background: #16a34a; } .btn-secondary { background: #64748b; color: white; } .btn-secondary:hover { background: #475569; } .dashboard-actions { margin-top: 30px; display: flex; gap: 15px; justify-content: center; } /* Layout Updates */ .content-layout { display: flex; flex-direction: column; gap: 20px; padding: 20px; max-width: 1400px; margin: 0 auto; } @media (min-width: 1024px) { .content-layout { flex-direction: row; align-items: flex-start; } } .sidebar { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); height: fit-content; width: 100%; } @media (min-width: 1024px) { .sidebar { width: 300px; position: sticky; top: 20px; } } .combined-filter-form { display: flex; flex-direction: column; gap: 15px; } .filter-group { margin-bottom: 0; } .filter-group label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; } .filter-select { width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; color: #1e293b; background-color: #f8fafc; transition: all 0.2s; } .filter-select:focus { border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); outline: none; } .main-content { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); flex: 1; width: 100%; box-sizing: border-box; } @media (min-width: 768px) { .main-content { padding: 30px; } } .new-task-section { margin-bottom: 30px; } /* Heading section replaced above */ /* Forms & Inputs */ /* Enhanced Form Styles */ .form-row { margin-bottom: 20px; } .field-group { display: grid; grid-template-columns: 1fr; gap: 15px; } @media (min-width: 768px) { .field-group { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .stats-grid { grid-template-columns: repeat(4, 1fr); } } @media (min-width: 1024px) { .dashboard-content { grid-template-columns: 2fr 1fr; } .content-layout { grid-template-columns: 300px 1fr; } } /* Form Styles */ .task-form { margin-bottom: 30px; } .title-field { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; width: 100%; margin-bottom: 10px; } .description-section { margin: 15px 0; } .description-toggle { color: #007bff; cursor: pointer; font-size: 14px; margin-bottom: 10px; display: inline-block; padding: 5px 10px; border: 1px solid #007bff; border-radius: 3px; transition: all 0.2s; } .description-toggle:hover { background-color: #007bff; color: white; } .description-field { margin-top: 10px; } .description-textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 100px; } .actions { margin-top: 15px; display: flex; gap: 10px; align-items: center; } .submit-btn { padding: 10px 20px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block; } .submit-btn:hover { background-color: #0056b3; } .cancel-btn { padding: 10px 20px; background-color: #6c757d; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block; } .cancel-btn:hover { background-color: #545b62; } /* Task List Enhancements */ .description-indicator { font-size: 12px; margin-left: 8px; opacity: 0.7; } .edit-btn, .details-btn { color: #007bff; text-decoration: none; padding: 4px 8px; border: 1px solid #007bff; border-radius: 3px; font-size: 12px; margin-right: 5px; } .edit-btn:hover, .details-btn:hover { background-color: #007bff; color: white; } /* Task Detail Page */ .task-detail { max-width: 800px; margin: 0 auto; padding: 20px; } .task-header { border-bottom: 2px solid #eee; padding-bottom: 20px; margin-bottom: 30px; } .task-detail .task-title { font-size: 28px; color: #333; margin-bottom: 10px; } .task-detail .task-title.completed { text-decoration: line-through; color: #6c757d; } .task-meta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; } .status-badge { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; } .status-badge.completed { background-color: #28a745; color: white; } .status-badge.pending { background-color: #ffc107; color: #212529; } .created-date { color: #6c757d; font-size: 14px; } .task-description { margin-bottom: 40px; } .task-description h2 { color: #333; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 20px; } .description-content { background-color: #f8f9fa; padding: 20px; border-radius: 4px; border-left: 4px solid #007bff; line-height: 1.6; } .no-description { color: #6c757d; font-style: italic; } .task-actions { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; } .status-toggle-btn { padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block; } .status-toggle-btn.completed { background-color: #28a745; color: white; } .status-toggle-btn.pending { background-color: #ffc107; color: #212529; } .status-toggle-btn:hover { opacity: 0.9; } .back-link { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; text-align: center; } .back-link a { color: #6c757d; text-decoration: none; margin: 0 10px; } .back-link a:hover { color: #007bff; } /* Edit Form Enhancements */ .edit-form { max-width: 600px; margin: 0 auto; } /* Responsive Design */ @media (min-width: 768px) { .field-group { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .stats-grid { grid-template-columns: repeat(4, 1fr); } } @media (min-width: 1024px) { .dashboard-content { grid-template-columns: 2fr 1fr; } .content-layout { grid-template-columns: 300px 1fr; } } /* Navigation Styles */ .main-nav { background: white; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); padding: 0; position: sticky; top: 0; z-index: 1000; } .nav-container { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; padding: 10px 20px; gap: 15px; } @media (min-width: 768px) { .nav-container { flex-direction: row; justify-content: space-between; align-items: center; padding: 15px 20px; } } .nav-brand { display: flex; align-items: center; justify-content: center; } .brand-link { color: #007bff; font-size: 20px; font-weight: 800; text-decoration: none; letter-spacing: -0.5px; } .nav-menu { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; } @media (min-width: 768px) { .nav-menu { gap: 20px; } } .nav-link { color: #64748b; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: all 0.2s; } .nav-link:hover { background: #f1f5f9; color: #007bff; } .nav-user { display: flex; align-items: center; justify-content: center; gap: 15px; padding-top: 10px; border-top: 1px solid #f1f5f9; } @media (min-width: 768px) { .nav-user { padding-top: 0; border-top: none; } } .user-info { color: #1e293b; font-size: 13px; font-weight: 600; background: #f1f5f9; padding: 6px 12px; border-radius: 20px; } .nav-link.sign-out { background: #fee2e2; color: #ef4444; } .nav-link.sign-out:hover { background: #fecaca; color: #dc2626; } /* Flash Messages */ .notice, .alert { padding: 15px 20px; margin: 20px 0; border-radius: 6px; font-weight: 600; } .notice { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .alert { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } /* Enhanced Task Priority Colors */ .task { border-left: 4px solid #007bff; } .task[data-priority="urgent"] { border-left-color: #dc3545; } .task[data-priority="execution"] { border-left-color: #28a745; } .task[data-priority="approval"] { border-left-color: #ffc107; } .task[data-priority="review"] { border-left-color: #17a2b8; } .task[data-priority="planning"] { border-left-color: #6c757d; } /* Enhanced Form Selects */ .priority-select, .department-select, .assignee-select, .status-select { background: white; border: 1px solid #ddd; border-radius: 4px; padding: 8px 12px; font-size: 14px; width: 100%; } /* Button Enhancements */ .action-btn { transition: all 0.3s; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; } .action-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); } .submit-btn, .cancel-btn { font-size: 16px; padding: 12px 24px; border-radius: 6px; transition: all 0.3s; } .submit-btn:hover, .cancel-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); } /* Layout Adjustments */ .dashboard-header { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); } /* Department Views Styles */ .content-container { max-width: 1400px; margin: 0 auto; padding: 0 20px 40px 20px; } .departments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 20px; } .department-card-modern { background: white; border-radius: 12px; padding: 24px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; } .department-card-modern:hover { transform: translateY(-2px); border-color: #007bff44; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); } .department-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; } .department-card-header h3 { margin: 0; font-size: 1.25rem; font-weight: 700; } .department-card-header h3 a { color: #1e293b; text-decoration: none; transition: color 0.2s; } .department-card-header h3 a:hover { color: #007bff; } .department-desc { font-size: 14px; color: #64748b; margin-bottom: 24px; line-height: 1.6; flex-grow: 1; } .department-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 20px; border-top: 1px solid #f1f5f9; } .dept-stat-box { display: flex; flex-direction: column; align-items: center; gap: 4px; } .dept-stat-label { font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; } .dept-stat-value { font-size: 18px; font-weight: 700; color: #1e293b; } .text-primary { color: #007bff; } .btn-mini { font-size: 11px; font-weight: 700; color: #64748b; text-decoration: none; padding: 4px 8px; background: #f1f5f9; border-radius: 4px; } .btn-mini:hover { background: #e2e8f0; color: #1e293b; } /* Old dept styles removed */ .department-info { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); margin-bottom: 30px; } .department-info h1 { color: #007bff; margin-bottom: 20px; } .department-info p { color: #6c757d; line-height: 1.6; margin-bottom: 20px; } .department-actions { text-align: center; margin-top: 20px; } /* Enhanced Form Styles for Departments */ .departments .form-group { display: flex; flex-direction: column; gap: 15px; } .departments .field { margin-bottom: 15px; } .departments .field label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; } .departments .field input[type="text"], .departments .field textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; } .departments .field textarea { min-height: 100px; resize: vertical; } .departments .actions { display: flex; gap: 15px; justify-content: center; margin-top: 20px; } /* Comments Section Styles */ .comments-section { margin-top: 40px; padding-top: 30px; border-top: 2px solid #eee; } .comments-section h2 { color: #333; font-size: 20px; margin-bottom: 20px; } .comment-form { margin-bottom: 30px; background: #f8f9fa; padding: 20px; border-radius: 8px; border: 1px solid #e9ecef; } .comment-textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 80px; margin-bottom: 15px; box-sizing: border-box; } .comment-textarea:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); } .comment { background: white; padding: 15px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 15px; transition: all 0.2s ease; } .comment:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); border-color: #d1d9e6; } .comment-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; } .comment-user { font-weight: 700; color: #007bff; } .comment-date { color: #999; } .comment-content { color: #444; line-height: 1.5; font-size: 14px; } .comment-content p { margin: 0; }