.profile-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid #334155;
    margin-top: 1.5rem;
}

.tab-item {
    padding: 0.75rem 0.25rem;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.tab-item:hover {
    color: #ffffff;
}

.tab-item.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.profile-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(234, 179, 8, 0.1);
    color: #facc15;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(234, 179, 8, 0.2);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-notice.hidden {
    display: none;
}

.tab-content {
    display: none;
    gap: 1.5rem;
    flex-direction: column;
}

.tab-content.active {
    display: flex;
}

.profile-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-section {
    background-color: #1e293b;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
}

.user-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.form-input:disabled {
    background-color: #334155;
    cursor: not-allowed;
}

/* Override browser autofill styles */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover, 
.form-input:-webkit-autofill:focus, 
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    transition: background-color 5000s ease-in-out 0s; /* A trick to delay the browser's style apply */
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #334155;
    color: #cbd5e1;
    border-color: #475569;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-danger {
    background-color: #dc2626;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.danger-zone {
    border-color: #ef4444;
}

.danger-zone .section-title {
    color: #ef4444;
}

.danger-zone p {
    color: #f87171;
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    width: 400px;
    text-align: center;
    border: 1px solid #334155;
}

.site-footer {
    max-width: 56rem; /* Corresponds to max-w-4xl in Tailwind */
    margin: 2rem auto 0;
    padding: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    margin: 0 0.75rem;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-disclaimer {
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0.7;
}

.footer-copyright p {
    margin: 0.25rem 0;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.required {
    color: #ef4444;
    font-weight: bold;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

/* Focus improvements */
.form-input:focus,
.btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.tab-item:focus {
    outline: none;
    color: #ffffff;
    border-bottom-color: #3b82f6;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-slate-400 {
        color: #cbd5e1 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Clock and Weather Widget Styles */
.widget-container {
    min-width: 280px;
    max-width: 320px;
}

.weather-widget {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.weather-temp {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
}
