/* style.css */
:root {
    --bg-color: #f4f6f9;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #2c3e50;
    --hover-effect: translateY(-5px);
    --border-color: rgba(255,255,255,0.4);
    --shadow-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] {
    --bg-color: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.85);
    --text-main: #c9d1d9;
    --border-color: rgba(255,255,255,0.05);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(52, 152, 219, 0.05), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(155, 89, 182, 0.05), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

.top-nav {
    background: transparent;
    padding-top: 1rem;
}

/* Premium Cards */
.premium-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color) !important;
    border-radius: 24px;
    box-shadow: 0 10px 30px var(--shadow-color) !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px var(--shadow-color) !important;
}

/* Special Gradients */
.text-gradient {
    background: linear-gradient(135deg, #007bff, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-bs-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Clock section */
.pattern-bg {
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.cal-day:hover:not(.empty) {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}
.cal-today {
    background: #0d6efd !important;
    color: white !important;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.cal-weekend {
    background-color: rgba(220, 53, 69, 0.08); /* Bootstrap Danger light tint */
    color: #dc3545; 
}
[data-bs-theme="dark"] .cal-weekend {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ea868f;
}
.cal-weekend:hover:not(.empty) {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: #dc3545 !important;
}

.cal-saturday {
    background-color: rgba(13, 110, 253, 0.08); /* Bootstrap Primary light tint */
    color: #0d6efd; 
}
[data-bs-theme="dark"] .cal-saturday {
    background-color: rgba(13, 110, 253, 0.15);
    color: #6ea8fe;
}
.cal-saturday:hover:not(.empty) {
    background-color: rgba(13, 110, 253, 0.2) !important;
    color: #0d6efd !important;
}

/* Weather */
.weather-card {
    background: linear-gradient(135deg, #5AB9EA, #5680E9);
    border: none;
}
[data-bs-theme="dark"] .weather-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}
.weather-icon {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

/* ToDo */
.task-list {
    scrollbar-width: thin;
}
.task-list::-webkit-scrollbar {
    width: 6px;
}
.task-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
}
[data-bs-theme="dark"] .task-list::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
}

.task-item {
    transition: all 0.2s ease;
    border-radius: 12px !important;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.02) !important;
}
[data-bs-theme="dark"] .task-item {
    background: rgba(255,255,255,0.02) !important;
    color: #c9d1d9;
}
.task-item:hover {
    background: rgba(0,0,0,0.05) !important;
}
[data-bs-theme="dark"] .task-item:hover {
    background: rgba(255,255,255,0.05) !important;
}
.task-item.completed span {
    text-decoration: line-through;
    opacity: 0.5;
}

/* Quick Links */
.transition-hover {
    transition: transform 0.2s ease, background 0.2s ease;
}
.transition-hover:hover {
    transform: scale(1.05);
}
[data-bs-theme="dark"] .bg-light {
    background-color: #21262d !important;
}
[data-bs-theme="dark"] .text-body {
    color: #c9d1d9 !important;
}

/* News */
.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}
.news-item:hover {
    background: rgba(13, 110, 253, 0.05);
}
.news-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

/* Theme Toggle */
.theme-toggle {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-color: var(--border-color);
}
.theme-toggle:hover {
    transform: rotate(15deg);
}
