Spaces:
Running
Running
File size: 3,459 Bytes
76df546 7b0623d 76df546 7b0623d 76df546 7b0623d 76df546 7b0623d 76df546 7b0623d 76df546 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | /* Additional Custom Styles */
/* Smooth transitions for all interactive elements */
button, a, input, select {
transition: all 0.2s ease-in-out;
}
/* Custom focus styles */
input:focus, select:focus, textarea:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
/* Calendar day hover effect */
.calendar-day {
position: relative;
overflow: hidden;
}
.calendar-day::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.03) 100%);
opacity: 0;
transition: opacity 0.3s ease;
}
.calendar-day:hover::before {
opacity: 1;
}
/* Appointment card hover animation */
.calendar-day > div:last-child > div {
transform: translateX(0);
transition: transform 0.2s ease, opacity 0.2s ease;
}
.calendar-day:hover > div:last-child > div {
transform: translateX(2px);
}
/* Sidebar text transition */
.sidebar-text {
transition: opacity 0.2s ease, width 0.2s ease;
}
/* Custom scrollbar for webkit */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
/* Mobile optimizations */
@media (max-width: 1024px) {
.calendar-day {
min-height: 80px;
}
.calendar-grid {
gap: 0.5px;
}
}
@media (max-width: 640px) {
.calendar-day {
min-height: 60px;
padding: 0.25rem;
}
/* Stack appointments on mobile */
.calendar-day > div:last-child {
display: none;
}
.calendar-day.active > div:last-child {
display: block;
}
}
/* Category button animations */
.category-btn {
position: relative;
overflow: hidden;
}
.category-btn::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.3s ease, height 0.3s ease;
}
.category-btn:active::after {
width: 200px;
height: 200px;
}
/* Stats card hover effects */
.grid > div {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.grid > div:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
/* Modal animation improvements */
#addModal > div {
transform: scale(0.95);
opacity: 0;
transition: transform 0.3s ease, opacity 0.3s ease;
}
#addModal:not(.hidden) > div {
transform: scale(1);
opacity: 1;
}
/* Loading state for buttons */
button.loading {
position: relative;
color: transparent;
}
button.loading::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
top: 50%;
left: 50%;
margin-left: -8px;
margin-top: -8px;
border: 2px solid #ffffff;
border-radius: 50%;
border-top-color: transparent;
animation: spinner 0.8s linear infinite;
}
@keyframes spinner {
to { transform: rotate(360deg); }
}
/* Notification toast animation */
.fade-in {
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
} |