|
| 1 | +:root { |
| 2 | + --bg-color: #0f0f13; |
| 3 | + --text-primary: #ffffff; |
| 4 | + --text-secondary: #a0a0a0; |
| 5 | + --accent-color: #4facfe; |
| 6 | + --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); |
| 7 | + --glass-bg: rgba(255, 255, 255, 0.05); |
| 8 | + --glass-border: rgba(255, 255, 255, 0.1); |
| 9 | + --day-hover: rgba(255, 255, 255, 0.1); |
| 10 | +} |
| 11 | + |
| 12 | +* { |
| 13 | + margin: 0; |
| 14 | + padding: 0; |
| 15 | + box-sizing: border-box; |
| 16 | +} |
| 17 | + |
| 18 | +body { |
| 19 | + background-color: transparent; |
| 20 | + font-family: 'Outfit', sans-serif; |
| 21 | + height: 100vh; |
| 22 | + display: flex; |
| 23 | + justify-content: center; |
| 24 | + align-items: center; |
| 25 | + overflow: hidden; |
| 26 | + user-select: none; /* Prevent text selection */ |
| 27 | +} |
| 28 | + |
| 29 | +.widget-container { |
| 30 | + position: relative; |
| 31 | + width: 280px; |
| 32 | + height: 320px; /* Reduced from 380px */ |
| 33 | + display: flex; |
| 34 | + justify-content: center; |
| 35 | + align-items: center; |
| 36 | +} |
| 37 | + |
| 38 | +/* Abstract Background Shapes */ |
| 39 | +.bg-shape { |
| 40 | + position: absolute; |
| 41 | + border-radius: 50%; |
| 42 | + filter: blur(30px); /* Reduced blur */ |
| 43 | + opacity: 0.6; |
| 44 | + z-index: 0; |
| 45 | +} |
| 46 | + |
| 47 | +.shape-1 { |
| 48 | + width: 160px; /* Reduced from 200px */ |
| 49 | + height: 160px; |
| 50 | + background: #764ba2; |
| 51 | + top: -15px; |
| 52 | + left: -15px; |
| 53 | + animation: float 10s infinite ease-in-out; |
| 54 | +} |
| 55 | + |
| 56 | +.shape-2 { |
| 57 | + width: 140px; /* Reduced from 180px */ |
| 58 | + height: 140px; |
| 59 | + background: #4facfe; |
| 60 | + bottom: -15px; |
| 61 | + right: -15px; |
| 62 | + animation: float 12s infinite ease-in-out reverse; |
| 63 | +} |
| 64 | + |
| 65 | +@keyframes float { |
| 66 | + 0%, 100% { transform: translate(0, 0); } |
| 67 | + 50% { transform: translate(15px, 15px); } /* Reduced movement */ |
| 68 | +} |
| 69 | + |
| 70 | +/* Glass Card */ |
| 71 | +.calendar-card { |
| 72 | + position: relative; |
| 73 | + z-index: 1; |
| 74 | + width: 90%; |
| 75 | + height: 90%; |
| 76 | + background: var(--glass-bg); |
| 77 | + backdrop-filter: blur(20px); |
| 78 | + -webkit-backdrop-filter: blur(20px); |
| 79 | + border: 1px solid var(--glass-border); |
| 80 | + border-radius: 18px; /* Reduced from 24px */ |
| 81 | + padding: 15px; /* Reduced from 20px */ |
| 82 | + box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); |
| 83 | + display: flex; |
| 84 | + flex-direction: column; |
| 85 | +} |
| 86 | + |
| 87 | +/* Header */ |
| 88 | +.calendar-header { |
| 89 | + display: flex; |
| 90 | + justify-content: space-between; |
| 91 | + align-items: center; |
| 92 | + margin-bottom: 12px; /* Reduced from 20px */ |
| 93 | + color: var(--text-primary); |
| 94 | +} |
| 95 | + |
| 96 | +.month-year { |
| 97 | + font-size: 0.95rem; /* Reduced from 1.2rem */ |
| 98 | + font-weight: 600; |
| 99 | + text-transform: capitalize; |
| 100 | + display: flex; |
| 101 | + gap: 4px; /* Reduced from 5px */ |
| 102 | +} |
| 103 | + |
| 104 | +#current-year { |
| 105 | + color: var(--text-secondary); |
| 106 | + font-weight: 400; |
| 107 | +} |
| 108 | + |
| 109 | +.nav-btn { |
| 110 | + background: transparent; |
| 111 | + border: none; |
| 112 | + color: var(--text-secondary); |
| 113 | + font-size: 1rem; /* Reduced from 1.2rem */ |
| 114 | + cursor: pointer; |
| 115 | + padding: 4px; /* Reduced from 5px */ |
| 116 | + border-radius: 50%; |
| 117 | + transition: all 0.2s ease; |
| 118 | + display: flex; |
| 119 | + align-items: center; |
| 120 | + justify-content: center; |
| 121 | +} |
| 122 | + |
| 123 | +.nav-btn:hover { |
| 124 | + background: var(--glass-border); |
| 125 | + color: var(--text-primary); |
| 126 | +} |
| 127 | + |
| 128 | +/* Body */ |
| 129 | +.calendar-body { |
| 130 | + flex: 1; |
| 131 | + display: flex; |
| 132 | + flex-direction: column; |
| 133 | +} |
| 134 | + |
| 135 | +.weekdays { |
| 136 | + display: grid; |
| 137 | + grid-template-columns: repeat(7, 1fr); |
| 138 | + text-align: center; |
| 139 | + margin-bottom: 6px; /* Reduced from 10px */ |
| 140 | +} |
| 141 | + |
| 142 | +.weekdays span { |
| 143 | + font-size: 0.7rem; /* Reduced from 0.85rem */ |
| 144 | + font-weight: 500; |
| 145 | + color: var(--text-secondary); |
| 146 | + text-transform: uppercase; |
| 147 | +} |
| 148 | + |
| 149 | +.days { |
| 150 | + display: grid; |
| 151 | + grid-template-columns: repeat(7, 1fr); |
| 152 | + gap: 3px; /* Reduced from 5px */ |
| 153 | + text-align: center; |
| 154 | +} |
| 155 | + |
| 156 | +.days div { |
| 157 | + font-size: 0.8rem; /* Reduced from 0.95rem */ |
| 158 | + color: var(--text-primary); |
| 159 | + width: 100%; |
| 160 | + aspect-ratio: 1; /* Make them square */ |
| 161 | + display: flex; |
| 162 | + justify-content: center; |
| 163 | + align-items: center; |
| 164 | + border-radius: 50%; |
| 165 | + cursor: pointer; |
| 166 | + transition: all 0.2s ease; |
| 167 | +} |
| 168 | + |
| 169 | +/* States */ |
| 170 | +.days div:hover:not(.empty) { |
| 171 | + background-color: var(--day-hover); |
| 172 | +} |
| 173 | + |
| 174 | +.days div.today { |
| 175 | + background: var(--accent-gradient); |
| 176 | + color: #fff; |
| 177 | + font-weight: 600; |
| 178 | + box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4); |
| 179 | +} |
| 180 | + |
| 181 | +.days div.prev-date, |
| 182 | +.days div.next-date { |
| 183 | + color: rgba(255, 255, 255, 0.2); |
| 184 | + pointer-events: none; |
| 185 | +} |
0 commit comments