Files
Student-Management-System-I…/static/css/dashboard.css
T
2025-04-15 04:20:26 +05:45

1257 lines
22 KiB
CSS

/* Modern Dashboard Styles */
:root {
/* Color Palette */
--primary: #4F46E5;
--primary-dark: #4338CA;
--secondary: #6B7280;
--success: #10B981;
--warning: #F59E0B;
--danger: #EF4444;
--info: #3B82F6;
/* Neutral Colors */
--background: #F9FAFB;
--card-bg: #FFFFFF;
--text-primary: #111827;
--text-secondary: #6B7280;
--border-color: #E5E7EB;
--hover-bg: #F3F4F6;
/* Effects */
--card-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
--hover-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
--transition: all 0.2s ease;
--radius-sm: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
}
/* Reset body padding since we removed the sidebar */
body {
padding-left: 0 !important;
padding-top: 0 !important;
}
/* Base Layout Styles */
body {
background-color: var(--background);
opacity: 0;
transition: opacity 0.3s ease;
min-height: 100vh;
padding-bottom: 80px;
position: relative;
color: var(--text-primary);
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Bottom Navigation */
.bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: var(--card-bg);
box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
z-index: 1000;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-top: 1px solid var(--border-color);
padding: 0.5rem 0;
}
.nav-container {
display: flex;
overflow-x: auto;
padding: 0.5rem 1rem;
justify-content: space-around;
-webkit-overflow-scrolling: touch;
gap: 1rem;
max-width: 1200px;
margin: 0 auto;
}
.nav-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--text-secondary);
text-decoration: none;
padding: 0.75rem 1rem;
transition: var(--transition);
border-radius: var(--radius-md);
min-width: 100px;
position: relative;
text-align: center;
flex: 1;
}
.nav-item i {
font-size: 1.5rem;
margin-bottom: 0.5rem;
transition: var(--transition);
}
.nav-item span {
white-space: nowrap;
font-size: 0.85rem;
line-height: 1.2;
font-weight: 500;
display: block;
margin-top: 0.25rem;
}
.nav-item.active {
color: var(--primary);
background-color: var(--hover-bg);
}
.nav-item.active::after {
content: '';
position: absolute;
bottom: -0.25rem;
left: 50%;
transform: translateX(-50%);
width: 4px;
height: 4px;
background-color: var(--primary);
border-radius: 50%;
}
.nav-item:hover:not(.active) {
color: var(--primary);
background-color: var(--hover-bg);
}
/* Large Desktops */
@media (min-width: 1200px) {
.nav-item {
min-width: 120px;
padding: 0.85rem 1.25rem;
}
.nav-item i {
font-size: 1.75rem;
}
.nav-item span {
font-size: 0.95rem;
}
}
/* Desktop */
@media (max-width: 1199px) {
.nav-item {
min-width: 110px;
padding: 0.75rem 1rem;
}
.nav-item i {
font-size: 1.5rem;
}
.nav-item span {
font-size: 0.85rem;
}
}
/* Tablets */
@media (max-width: 768px) {
.nav-container {
padding: 0.5rem;
gap: 0.5rem;
}
.nav-item {
min-width: 90px;
padding: 0.6rem 0.75rem;
}
.nav-item i {
font-size: 1.25rem;
margin-bottom: 0.35rem;
}
.nav-item span {
font-size: 0.75rem;
}
}
/* Mobile Landscape */
@media (max-width: 576px) {
.nav-container {
padding: 0.4rem;
gap: 0.35rem;
}
.nav-item {
min-width: 75px;
padding: 0.5rem 0.5rem;
}
.nav-item i {
font-size: 1.1rem;
margin-bottom: 0.25rem;
}
.nav-item span {
font-size: 0.7rem;
}
}
/* Mobile Portrait */
@media (max-width: 375px) {
.nav-container {
padding: 0.3rem;
gap: 0.25rem;
}
.nav-item {
min-width: 65px;
padding: 0.4rem;
}
.nav-item i {
font-size: 1rem;
margin-bottom: 0.2rem;
}
.nav-item span {
font-size: 0.65rem;
font-weight: 400;
}
}
/* Summary Cards */
.summary-card {
background: var(--card-bg);
border-radius: var(--radius-lg);
border: 1px solid var(--border-color);
transition: var(--transition);
overflow: hidden;
}
.summary-card:hover {
transform: translateY(-2px);
box-shadow: var(--hover-shadow);
}
.summary-card .card-header {
background-color: var(--hover-bg);
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--border-color);
}
.summary-card .card-header h5 {
color: var(--text-primary);
font-size: 0.875rem;
font-weight: 600;
margin: 0;
display: flex;
align-items: center;
gap: 0.5rem;
}
.summary-card .card-body {
padding: 1.25rem;
}
/* Progress Bars */
.progress {
height: 0.75rem;
background-color: var(--hover-bg);
border-radius: var(--radius-md);
overflow: hidden;
}
.progress-bar {
border-radius: var(--radius-md);
transition: var(--transition);
}
/* Welcome Section */
.welcome-section {
background: linear-gradient(135deg, #4F46E5, #3B82F6) !important;
color: white !important;
padding: 2rem;
border-radius: var(--radius-lg);
margin-bottom: 2rem;
position: relative;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
}
.welcome-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%),
linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
background-size: 20px 20px;
opacity: 0.1;
}
.welcome-section .profile-picture-container.profile-sm {
width: 80px;
height: 80px;
margin-right: 1.5rem;
border-radius: 50%;
overflow: hidden;
border: 3px solid rgba(255, 255, 255, 0.2);
}
.welcome-section .profile-picture {
width: 100%;
height: 100%;
object-fit: cover;
}
.welcome-section h2 {
font-size: 1.75rem;
margin-bottom: 0.5rem;
color: white;
}
.welcome-section .text-muted {
color: rgba(255, 255, 255, 0.9) !important;
}
.welcome-section .badge {
font-size: 0.8rem;
padding: 0.35rem 0.65rem;
}
.welcome-section .logout-btn {
background-color: rgba(255, 255, 255, 0.1);
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: var(--radius-md);
padding: 0.5rem 1rem;
font-size: 0.875rem;
transition: var(--transition);
display: flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
}
.welcome-section .logout-btn:hover {
background-color: rgba(255, 255, 255, 0.2);
transform: translateY(-1px);
}
/* Activity Scroll */
.activity-scroll {
max-height: 300px;
overflow-y: auto;
padding-right: 0.5rem;
scrollbar-width: thin;
scrollbar-color: var(--text-secondary) var(--hover-bg);
}
.activity-scroll::-webkit-scrollbar {
width: 4px;
}
.activity-scroll::-webkit-scrollbar-track {
background: var(--hover-bg);
border-radius: var(--radius-md);
}
.activity-scroll::-webkit-scrollbar-thumb {
background: var(--text-secondary);
border-radius: var(--radius-md);
}
.activity-scroll::-webkit-scrollbar-thumb:hover {
background: var(--text-primary);
}
/* Feedback Cards */
.feedback-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.feedback-card {
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 1rem;
border: 1px solid #e0e0e0;
margin-bottom: 1rem;
}
.feedback-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
}
.user-info {
display: flex;
gap: 1rem;
flex: 1;
}
.student-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: var(--hover-bg);
flex-shrink: 0;
}
.student-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.student-avatar i {
font-size: 1.5rem;
color: var(--text-secondary);
}
.feedback-content {
flex: 1;
min-width: 0; /* Prevents text overflow */
}
.rating-stars {
color: var(--warning);
font-size: 1rem;
flex-shrink: 0;
padding-top: 0.25rem;
}
.rating-stars i {
margin-right: 2px;
}
.feedback-message {
color: #333;
font-size: 0.9rem;
line-height: 1.5;
margin-top: 0.5rem;
background: var(--hover-bg);
padding: 0.5rem;
border-radius: 6px;
}
.feedback-message p {
margin: 0;
word-wrap: break-word;
}
.empty-state {
text-align: center;
padding: 2rem;
color: var(--text-secondary);
background: var(--hover-bg);
border-radius: 8px;
margin: 1rem 0;
}
.empty-state i {
font-size: 2rem;
margin-bottom: 1rem;
display: block;
color: var(--text-secondary);
}
.empty-state p {
margin: 0;
font-size: 0.9rem;
}
/* Rating Summary Styles */
.rating-summary {
text-align: right;
}
.rating-stats {
display: inline-flex;
flex-direction: column;
align-items: center;
}
.rating-number {
font-size: 2rem;
font-weight: bold;
color: var(--primary);
}
.rating-count {
font-size: 0.8rem;
color: var(--text-secondary);
}
/* Status Badge Styles */
.status-badge {
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.8rem;
font-weight: 500;
}
.status-badge.completed {
background-color: var(--success);
color: white;
}
.status-badge.ongoing {
background-color: var(--warning);
color: #000;
}
.status-badge.upcoming {
background-color: var(--info);
color: white;
}
/* Leave Badge Styles */
.leave-pending {
background-color: var(--warning);
color: #000;
}
.leave-approved {
background-color: var(--success);
color: white;
}
.leave-rejected {
background-color: var(--danger);
color: white;
}
/* Content Card Styles */
.content-card {
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
padding: 1.5rem;
margin-bottom: 1.5rem;
}
/* Special style for notice card to use full height */
.notice-section .content-card {
height: 100%; /* Take full height of parent */
display: flex;
flex-direction: column;
}
.notice-section .content-card h5 {
margin-bottom: 1rem;
flex-shrink: 0;
}
.notice-section .list-group {
flex-grow: 1; /* Take remaining space */
height: auto; /* Let flex handle the height */
min-height: 400px; /* Minimum height */
margin-bottom: 0;
}
/* Summary Card Styles */
.summary-card {
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.summary-card .card-header {
background: var(--hover-bg);
border-bottom: 1px solid #e0e0e0;
padding: 1rem;
}
.summary-card .card-body {
padding: 1rem;
}
/* Progress Bars */
.progress {
height: 12px;
background-color: #E8EAF6;
border-radius: 24px;
overflow: hidden;
}
.progress-bar {
border-radius: 24px;
transition: var(--transition);
}
/* Add this to replace inline style attributes */
.progress-bar[style] {
width: var(--progress-width, 0%);
}
/* Tables */
.table {
background: #FFFFFF;
border-radius: 16px;
overflow: hidden;
box-shadow: var(--card-shadow);
border-collapse: separate;
border-spacing: 0;
}
.table thead th {
background: var(--hover-bg);
border: none;
padding: 1rem 1.5rem;
font-weight: 600;
color: var(--primary);
}
.table tbody td {
padding: 1rem 1.5rem;
border-top: 1px solid var(--border-color);
transition: var(--transition);
}
.table tbody tr:hover td {
background-color: var(--hover-bg);
}
/* Custom tabs styling */
.custom-tabs {
display: flex;
border-bottom: 1px solid #dee2e6;
margin-bottom: 1rem;
}
.custom-tab-btn {
padding: 0.5rem 1rem;
margin-bottom: -1px;
background: none;
border: 1px solid transparent;
border-top-left-radius: 0.25rem;
border-top-right-radius: 0.25rem;
cursor: pointer;
color: var(--secondary);
}
.custom-tab-btn.active {
color: var(--primary);
background-color: #fff;
border-color: #dee2e6 #dee2e6 #fff;
}
.custom-tab-content {
display: none;
}
.custom-tab-content.active {
display: block;
}
/* Fix for profile tab visibility */
#profileSection.active .tab-pane.active {
display: block !important;
}
#profileSection.active .nav-tabs .nav-link.active {
color: var(--primary);
border-color: var(--primary);
background-color: #fff;
}
/* Action buttons enhanced */
.action-button {
border-radius: 50px;
padding: 10px 20px;
font-weight: 500;
transition: var(--transition);
display: inline-flex;
align-items: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.action-button:hover {
transform: translateY(-3px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.action-button i {
margin-right: 8px;
}
/* Feedback Section Styles */
.feedback-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.student-avatar {
width: 40px;
height: 40px;
background: var(--primary-light);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
}
.rating {
display: flex;
gap: 0.25rem;
}
.rating i {
font-size: 1rem;
transition: transform 0.2s ease;
}
.rating i:hover {
transform: scale(1.2);
}
.reply-btn {
padding: 0.5rem 1rem;
font-size: 0.875rem;
border-radius: 20px;
transition: all 0.2s ease;
}
.reply-btn:hover {
background-color: var(--primary);
color: white;
transform: translateY(-1px);
}
/* Rating Summary Styles */
.rating-stats {
text-align: center;
padding: 1rem;
background: linear-gradient(145deg, #ffffff, #f5f5f5);
border-radius: 12px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
min-width: 200px;
}
.rating-number {
line-height: 1;
margin-bottom: 0.5rem;
}
.rating-number .display-4 {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 0;
}
.rating-stars {
display: flex;
justify-content: center;
gap: 0.25rem;
margin-bottom: 0.5rem;
}
.rating-stars i {
font-size: 1.1rem;
transition: transform 0.2s ease;
}
.rating-stars i:hover {
transform: scale(1.2);
}
.rating-count {
font-size: 0.875rem;
color: var(--text-secondary);
}
/* Responsive Welcome Section */
@media (max-width: 992px) {
.welcome-section {
padding: 1.5rem;
}
.welcome-section .profile-picture-container.profile-sm {
width: 70px;
height: 70px;
margin-right: 1rem;
}
.welcome-section h2 {
font-size: 1.5rem;
}
}
@media (max-width: 768px) {
.welcome-section {
padding: 1.25rem;
}
.welcome-section .profile-picture-container.profile-sm {
width: 60px;
height: 60px;
}
.welcome-section h2 {
font-size: 1.25rem;
}
.welcome-section .text-muted {
font-size: 0.875rem;
}
}
@media (max-width: 576px) {
.welcome-section {
padding: 1rem;
}
.welcome-section .profile-picture-container.profile-sm {
width: 50px;
height: 50px;
margin-right: 0.75rem;
}
.welcome-section h2 {
font-size: 1.1rem;
}
.welcome-section .d-flex.justify-content-between {
gap: 1rem;
}
.welcome-section .badge {
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
}
.welcome-section .logout-btn {
padding: 0.35rem 0.75rem;
font-size: 0.8rem;
}
}
@media (max-width: 375px) {
.welcome-section {
padding: 0.875rem;
}
.welcome-section .profile-picture-container.profile-sm {
width: 45px;
height: 45px;
}
.welcome-section h2 {
font-size: 1rem;
}
.welcome-section .logout-text {
display: none;
}
.welcome-section .logout-btn {
padding: 0.25rem 0.5rem;
}
.welcome-section .badge {
font-size: 0.7rem;
padding: 0.2rem 0.4rem;
}
}
/* Scrollable Containers */
.feedback-list {
height: 300px;
overflow-y: auto;
padding-right: 10px;
scrollbar-width: thin;
scrollbar-color: var(--primary) var(--light);
}
.feedback-list::-webkit-scrollbar {
width: 6px;
}
.feedback-list::-webkit-scrollbar-track {
background: var(--light);
border-radius: 3px;
}
.feedback-list::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 3px;
}
.feedback-list::-webkit-scrollbar-thumb:hover {
background: var(--primary-dark);
}
/* Make notice list scrollable */
.list-group {
height: 400px;
overflow-y: auto;
padding-right: 10px;
scrollbar-width: thin;
scrollbar-color: var(--primary) var(--light);
}
.list-group::-webkit-scrollbar {
width: 6px;
}
.list-group::-webkit-scrollbar-track {
background: var(--light);
border-radius: 3px;
}
.list-group::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 3px;
}
.list-group::-webkit-scrollbar-thumb:hover {
background: var(--primary-dark);
}
/* Responsive adjustments */
@media (max-width: 576px) {
.list-group {
height: 300px;
}
}
/* Responsive Navigation */
@media (max-width: 768px) {
.nav-container {
padding: 0.5rem;
gap: 0.25rem;
}
.nav-item {
min-width: 70px;
padding: 0.4rem;
}
.nav-item i {
font-size: 1.1rem;
margin-bottom: 0.2rem;
}
.nav-item span {
font-size: 0.65rem;
}
}
@media (max-width: 576px) {
.nav-container {
padding: 0.4rem;
gap: 0.2rem;
}
.nav-item {
min-width: 60px;
padding: 0.35rem;
}
.nav-item i {
font-size: 1rem;
margin-bottom: 0.15rem;
}
.nav-item span {
font-size: 0.6rem;
}
}
@media (max-width: 375px) {
.nav-container {
padding: 0.3rem;
gap: 0.15rem;
}
.nav-item {
min-width: 50px;
padding: 0.3rem;
}
.nav-item i {
font-size: 0.9rem;
margin-bottom: 0.1rem;
}
.nav-item span {
font-size: 0.55rem;
}
}
/* Enhanced Responsive Styles for Dashboard */
/* Tablet and below adjustments for the welcome section */
@media (max-width: 768px) {
/* Dashboard cards adjustments */
.content-card {
padding: 16px;
margin-bottom: 16px;
}
/* Better spacing for the summary cards */
.row > [class*="col-"] {
margin-bottom: 16px;
}
/* Tighter spacing for statistics cards */
.summary-card .stat-number {
font-size: 2rem;
}
}
/* Small devices (landscape phones) */
@media (max-width: 576px) {
/* Dashboard cards adjustments */
.content-card {
padding: 12px;
margin-bottom: 12px;
border-radius: 8px;
}
/* Stacked layout for activity items */
.activity-item {
flex-direction: column;
}
.activity-item .activity-info {
margin-top: 8px;
width: 100%;
}
/* Summary cards for mobile */
.summary-card .stat-number {
font-size: 1.75rem;
}
.summary-card .card-body {
padding: 16px;
}
/* Simplified progress bars */
.progress {
height: 6px;
}
/* Mobile-optimized lists */
.list-group-item {
padding: 0.75rem;
}
/* Table adjustments */
.table th,
.table td {
padding: 0.5rem 0.25rem;
font-size: 0.75rem;
}
/* Modified tabs for mobile */
.custom-tab-btn {
padding: 0.5rem 0.75rem;
font-size: 0.85rem;
}
}
/* Extra small devices (portrait phones) */
@media (max-width: 375px) {
/* Tighter spacing */
.content-card {
padding: 10px;
margin-bottom: 10px;
}
/* Further reduced stat sizes */
.summary-card .stat-number {
font-size: 1.5rem;
}
/* Stacked buttons on very small screens */
.btn-sm-stack {
display: block;
width: 100%;
margin-bottom: 0.5rem;
}
/* Even smaller tabs */
.custom-tab-btn {
padding: 0.4rem 0.6rem;
font-size: 0.8rem;
}
/* Simplified profile sections */
.profile-info-row {
flex-direction: column;
}
.profile-info-label,
.profile-info-value {
width: 100%;
text-align: left;
}
}
/* Improvements for larger screens */
@media (min-width: 992px) {
/* More breathing room */
.content-card {
padding: 24px;
margin-bottom: 24px;
}
/* Larger stats for desktop */
.summary-card .stat-number {
font-size: 2.75rem;
}
}
/* Extra styles for proper responsiveness of common elements */
img.img-fluid {
max-width: 100%;
height: auto;
}
.table-responsive {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
/* Ensure buttons stay properly sized on mobile */
@media (max-width: 576px) {
.btn {
padding: 0.375rem 0.75rem;
font-size: 0.875rem;
}
.btn-lg {
padding: 0.5rem 1rem;
font-size: 1rem;
}
.btn-sm {
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
}
}
/* Meeting Section Styles */
.meeting-card {
background: var(--card-bg);
border-radius: var(--radius-lg);
border: 1px solid var(--border-color);
transition: var(--transition);
overflow: hidden;
}
.meeting-card:hover {
transform: translateY(-2px);
box-shadow: var(--hover-shadow);
}
.meeting-card .card-header {
background-color: var(--hover-bg);
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--border-color);
}
.meeting-card .card-header h5 {
color: var(--text-primary);
font-size: 0.875rem;
font-weight: 600;
margin: 0;
display: flex;
align-items: center;
gap: 0.5rem;
}
.meeting-card .card-body {
padding: 1.25rem;
}
.meeting-status {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.5rem;
border-radius: var(--radius-sm);
font-size: 0.75rem;
font-weight: 500;
}
.meeting-status.scheduled {
background-color: var(--primary-light);
color: var(--primary-dark);
}
.meeting-status.completed {
background-color: var(--success-light);
color: var(--success-dark);
}
.meeting-status.cancelled {
background-color: var(--danger-light);
color: var(--danger-dark);
}
.meeting-status.rescheduled {
background-color: var(--warning-light);
color: var(--warning-dark);
}
.meeting-actions {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
}
.meeting-actions .btn {
padding: 0.375rem 0.75rem;
font-size: 0.875rem;
}
.meeting-actions .btn i {
margin-right: 0.25rem;
}
/* Responsive Meeting Section */
@media (max-width: 768px) {
.meeting-card {
margin-bottom: 1rem;
}
.meeting-actions {
flex-wrap: wrap;
}
.meeting-actions .btn {
flex: 1 1 calc(50% - 0.5rem);
min-width: calc(50% - 0.5rem);
}
}
@media (max-width: 576px) {
.meeting-actions .btn {
flex: 1 1 100%;
min-width: 100%;
margin-bottom: 0.5rem;
}
}