/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ====== Modern UI Enhancements ====== */

:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #64b5f6;
    --primary-gradient: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    --header-gradient: linear-gradient(135deg, #0071e3 0%, #004fa3 50%, #003d82 100%);
    --secondary-color: #546e7a;
    --accent-color: #ff9800;
    --background-color: #f8fafc;
    --section-bg: #ffffff;
    --card-bg: #fff;
    --text-color: #263238;
    --text-secondary: #546e7a;
    --heading-font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --body-font: 'Inter', 'Segoe UI', Arial, sans-serif;
    --border-radius: 0.75rem;
    --box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(.4,0,.2,1);
    --card-hover-transform: translateY(-8px);
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background: var(--background-color);
    line-height: 1.7;
    letter-spacing: 0.015em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
}

/* Header & Hero */
header {
    background: var(--header-gradient);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-top: 1.5rem !important;
    padding-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}
.site-title {
    font-size: 2.4rem;
    letter-spacing: -1.5px;
    margin-bottom: 0.3rem;
    font-weight: 800;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.25);
    padding: 0.7rem 1.2rem;
    border-radius: 1rem;
    display: inline-block;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
}
.site-slogan {
    font-size: 1.15rem;
    opacity: 0.95;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
    display: inline-block;
    color: white;
    margin-top: 0.5rem;
}

.header-logo-area {
    position: relative;
    z-index: 2;
}

.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    direction: ltr;
}

.header-wave svg {
    width: 100%;
    height: 70px;
    transform: rotateY(0deg);
}

.header-wave path {
    fill: var(--section-bg);
}

.social-icons {
    position: relative;
    z-index: 2;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.social-icons a:hover {
    background: #ffffff;
    color: var(--primary-color) !important;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8fafc 100%);
    border-radius: 2.5rem;
    margin-top: 2.5rem;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    padding: 3rem 0;
}
.hero img {
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.hero img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    margin-top: -2.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    padding: 0.75rem 1rem;
}
.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    border-radius: 0.75rem;
    transition: var(--transition);
    padding: 0.6rem 1.2rem !important;
    letter-spacing: 0.02em;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
    background: var(--primary-gradient);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(30,136,229,0.25);
    transform: translateY(-2px);
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
}
.language-selector button {
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    font-weight: 600;
    border-radius: 2rem;
    padding: 0.3rem 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    outline: none;
}
.language-selector button.active, .language-selector button:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,136,229,0.25);
}

/* Cards & Sections */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    background: var(--card-bg);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.card-title {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-dark);
}
.card-body {
    padding: 1.75rem !important;
}

.resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    box-shadow: 0 8px 25px rgba(30,136,229,0.15);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.card:hover .resource-icon {
    transform: scale(1.1) translateY(-5px);
}
.resource-icon i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.card:hover .resource-icon i {
    transform: scale(1.1);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin: 2rem auto 2.5rem auto;
}

section {
    margin-bottom: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.bg-primary, .btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
}

.bg-light {
    background: var(--background-color) !important;
}

.page-header {
    padding: 4rem 0 !important;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8fafc 100%) !important;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.page-header-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30,136,229,0.1) 0%, rgba(100,181,246,0.05) 100%);
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    position: absolute;
    bottom: -70px;
    left: -70px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(100,181,246,0.1) 0%, rgba(30,136,229,0.05) 100%);
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Buttons */
.btn {
    border-radius: 2rem;
    font-weight: 600;
    padding: 0.6rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    text-transform: capitalize;
    letter-spacing: 0.02em;
}
.btn-primary, .btn-outline-primary:hover {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    border: none;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30,136,229,0.25);
}
.btn-outline-primary {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    background: #fff !important;
}
.btn-outline-primary:hover {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30,136,229,0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #1e88e5 100%);
    color: #fff;
    border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding-top: 3rem !important;
}
footer a {
    color: #fff;
    opacity: 0.95;
    transition: var(--transition);
    text-decoration: none;
}
footer a:hover {
    opacity: 1;
    text-decoration: none;
    color: var(--accent-color);
}
footer h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
    letter-spacing: 0.5px;
}

/* List Group */
.list-group-item {
    border-left: 4px solid var(--primary-color);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    background: #f4f8fb;
    font-weight: 500;
    transition: var(--transition);
    padding: 1rem 1.25rem;
}
.list-group-item:hover {
    background: #e3f2fd;
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s, transform 0.7s;
}
.animated {
    opacity: 1 !important;
    transform: none !important;
}

/* Section Titles */
.section-title-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

section h2, section h1.display-4 {
    font-family: var(--heading-font);
    font-weight: 800;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle .lead {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modern card styling */
.resource-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resource-card:hover {
    transform: translateY(-12px);
}

.resource-card .card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.resource-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Forms */
.form-control, .form-select {
    border-radius: 1rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(30,136,229,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
    font-size: 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 5px 25px rgba(30,136,229,0.15);
}
.form-control-lg {
    font-size: 1.1rem !important;
    padding: 1rem 1.5rem !important;
}
.form-floating label {
    padding: 1rem 1.25rem;
}

/* Breadcrumbs */
.breadcrumb {
    color: var(--text-secondary);
    font-weight: 500;
    background: transparent;
}
.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 700;
}
.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}
.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.5em 0.8em;
    border-radius: 0.5rem;
    letter-spacing: 0.03em;
}
.badge.bg-primary {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 10px rgba(30,136,229,0.2);
}
.badge.bg-success {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%) !important;
    box-shadow: 0 4px 10px rgba(67,160,71,0.2);
}
.badge.bg-info {
    background: linear-gradient(135deg, #00acc1 0%, #007c91 100%) !important;
    box-shadow: 0 4px 10px rgba(0,172,193,0.2);
}
.badge.bg-warning {
    background: linear-gradient(135deg, #ffb300 0%, #fb8c00 100%) !important;
    box-shadow: 0 4px 10px rgba(255,179,0,0.2);
}

/* Media Queries */
@media (max-width: 992px) {
    .navbar {
        margin-top: -1.5rem;
        padding: 0.5rem;
    }
    .site-title {
        font-size: 1.8rem;
        padding: 0.6rem 1rem;
    }
    .site-slogan {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }
    .hero {
        margin-top: 1rem;
        padding: 2rem 0;
    }
    section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0.8rem;
    }
    .site-slogan {
        width: 100%;
        text-align: center;
    }
    .hero img {
        margin-top: 2rem;
        max-height: 300px;
    }
    .section-divider {
        margin: 1.5rem auto 2rem auto;
    }
    .card-body {
        padding: 1.5rem !important;
    }
    section h2, section h1.display-4 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    .site-title {
        font-size: 1.4rem;
        padding: 0.4rem 0.7rem;
        margin-bottom: 0.5rem;
    }
    .site-slogan {
        font-size: 0.9rem;
    }
    .language-selector {
        top: 0.8rem;
        right: 1rem;
    }
    .language-selector button {
        padding: 0.2rem 0.8rem;
        font-size: 0.9rem;
    }
    .card-body {
        padding: 1.25rem !important;
    }
    .page-header {
        padding: 2.5rem 0 !important;
    }
}

/* Tasks Feature Styles */
.task-item {
    border-left: 4px solid var(--primary-color);
    border-radius: 0.75rem !important;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 1rem 1.25rem !important;
}

.task-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.task-item h5 {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.task-item .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    border-color: var(--primary-color);
    transition: all 0.2s ease;
}

.task-item .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30,136,229,0.2);
}

.completed-task {
    border-left-color: var(--secondary-color) !important;
    opacity: 0.75;
}

.task-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-item:hover .task-actions {
    opacity: 1;
}

.task-filters .btn {
    border-radius: 2rem;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.task-filters .btn:not(.active):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.task-filters .btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(30,136,229,0.2);
}

.delete-task-btn {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.delete-task-btn:hover {
    background-color: #f44336;
    color: white;
    border-color: #f44336;
    transform: rotate(90deg);
}

#emptyTaskList {
    color: var(--secondary-color);
    transition: all 0.3s ease;
    padding: 2rem 0;
}
#emptyTaskList i {
    opacity: 0.6;
    transition: all 0.5s ease;
}
#emptyTaskList:hover i {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Tasks Section Styling */
.tasks-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.task-add-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.task-add-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

.tasks-list-card {
    border-radius: 1rem;
    overflow: hidden;
}

.empty-tasks-icon {
    width: 90px;
    height: 90px;
    background: rgba(30,136,229,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

#emptyTaskList:hover .empty-tasks-icon {
    transform: scale(1.1);
    background: rgba(30,136,229,0.15);
}

.task-item {
    border-left: 4px solid var(--primary-color);
    border-radius: 0.75rem !important;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 1rem 1.25rem !important;
}

.task-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.task-item h5 {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.task-item .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    border-color: var(--primary-color);
    transition: all 0.2s ease;
}

.task-item .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30,136,229,0.2);
}

.completed-task {
    border-left-color: var(--secondary-color) !important;
    opacity: 0.75;
}

.task-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-item:hover .task-actions {
    opacity: 1;
}

.task-filters .btn {
    border-radius: 2rem;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.task-filters .btn:not(.active):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.task-filters .btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(30,136,229,0.2);
}

.delete-task-btn {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.delete-task-btn:hover {
    background-color: #f44336;
    color: white;
    border-color: #f44336;
    transform: rotate(90deg);
}

#emptyTaskList {
    color: var(--secondary-color);
    transition: all 0.3s ease;
    padding: 2rem 0;
}

.task-highlight {
    animation: highlightTask 1.5s ease;
}
@keyframes highlightTask {
    0% { background-color: rgba(30,136,229,0.2); }
    70% { background-color: rgba(30,136,229,0.1); }
    100% { background-color: transparent; }
}

/* Custom Input Group Styling */
.input-group-text {
    color: var(--primary-color);
    border-color: rgba(30,136,229,0.15);
}

.form-control, .form-select {
    border-color: rgba(30,136,229,0.15);
}

/* GREEN THEME OVERRIDES - START */
header.bg-primary, .bg-primary, header {
  background-color: #28a745 !important;
  background: linear-gradient(135deg, #28a745, #5cb85c) !important;
  color: white;
}

.btn-primary {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}

h1, h2, h3, h4, h5, h6, .site-title, .card-title {
  color: #28a745 !important;
}

section.py-5.bg-primary, .bg-primary {
  background: linear-gradient(45deg, #28a745, #5cb85c) !important;
}

a { color: #28a745 !important; }
a:hover { color: #218838 !important; }

.nav-link.active {
  color: #28a745 !important;
}

.nav-link:hover {
  color: #218838 !important;
}
/* GREEN THEME OVERRIDES - END */ 