/* Custom styles to complement Tailwind CSS */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f0f4f8;
  color: #1e3a8a; /* A deep blue for text */
}

/* Gradient for buttons and highlights */
.btn-gradient {
  background: linear-gradient(to right, #3b82f6, #10b981);
}

.btn-gradient:hover {
  background: linear-gradient(to right, #2563eb, #059669);
}

/* Styles for the calendar to prevent layout issues */
#cal-heatmap {
    width: 100%;
    overflow: hidden; /* Hide overflow to be safe */
}
/* Force the library's container and SVG to be responsive */
#cal-heatmap .cal-heatmap-container,
#cal-heatmap svg {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
}
.cal-heatmap-container .subdomain-text {
    fill: #1e3a8a;
    font-size: 8px;
}

/* Custom transition for interactive cards */
.interactive-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
.interactive-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.interactive-card.active {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #10b981; /* Use a highlight color */
}

/* Hide scrollbar for exercise lists */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Ensure hidden class from original file works reliably */
.-hidden {
    display: none !important;
}

/* Language Switcher Styles */
.language-switcher {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.language-switcher a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    padding: 0 0.25rem;
    transition: color 0.2s ease;
}
.language-switcher a:hover {
    color: #3b82f6;
}
.language-switcher a.active-lang {
    color: #10b981;
}

/* Style for the goal input */
#daily-goal-input {
    width: 45px;
    text-align: center;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #f59e0b; /* A yellow to match the card */
    font-weight: 700;
    color: #92400e; /* Dark yellow text */
}
#daily-goal-input:focus {
    outline: none;
    border-bottom: 2px solid #d97706;
}

/* Active goal box — distinctly visible above Key Statistics */
.active-goal-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 2px solid #3b82f6;
    border-left: 6px solid #10b981;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}

.active-goal-box__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.active-goal-box__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.active-goal-box__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1d4ed8;
}

.active-goal-box__goal {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 0.25rem 0;
    line-height: 1.35;
}

.active-goal-box__focus {
    font-size: 0.9rem;
    color: #059669;
    font-weight: 600;
    margin: 0;
}