/*
================================================================================
page.css — PARTNER BRANDING FILE (DARK THEME)
================================================================================

PURPOSE:
This file controls only the visual branding of the header. 
The header-widget.js now owns ALL layout, positioning, responsive behaviour, 
hamburger menu, mobile dropdown, icon sizing, hover effects, and tooltips.

WHAT YOU CAN CHANGE TO STYLE THE HEADER:
────────────────────────────────────────────────────────
1. header { 
     background-color: #333;     ← Your dark brand colour 
     color: white;                ← Text + icon colour 
     padding: 0.5rem 1rem;        ← Adjust padding if needed 
   }

2. .menu-item.selected .menu-link {
     background-color: rgba(102, 179, 255, 0.2);  - Subtle blue highlight 
     font-weight: 600;
   }

3. .menu-item.selected .menu-icon {
     color: #66b3ff;    ← Blue colour for the selected icon 
   }

DO NOT add or modify rules for:
- .menu-list, .menu-link, .hamburger, .menu-icon, .menu-text, nav, .logo, 
  .menu-group, .menu-hint, or any media queries targeting the header/menu.

These are now fully controlled by header-widget.js.
Adding them will cause visual conflicts.

Footer and other site elements (welcome, API keys widget, index buttons) 
can still be styled normally below.
================================================================================
*/

/* Define spin animation for overlay */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Basic styles */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* 
 * PARTNER HEADER CONTROL — ONLY EDIT THIS SECTION FOR HEADER STYLING
 */
header {
    background-color: #333;     /* ← Dark brand background */
    color: white;               /* ← White text & icons */
    padding: 0.5rem 1rem;
    margin: 0;
}

/* Selected menu item background (subtle blue highlight for dark theme) */
.menu-item.selected .menu-link {
    background-color: rgba(102, 179, 255, 0.2);
    font-weight: 600;
}

/* Selected menu item ICON colour — blue accent */
.menu-item.selected .menu-icon {
    color: #66b3ff;
}

/* 
 * REMOVED: All old header/nav/menu/hamburger/.menu-* rules and media queries
 * Reason: header-widget.js now fully owns fixed positioning, layout, 
 * responsive hamburger, mobile menu, icon behaviour, and hover states.
 * 
 * These old rules have been removed to prevent conflicts with the widget.
 */

/* Welcome section styles */
.welcome {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.welcome h1 {
    font-size: 2em;
    margin-bottom: 1em;
}

.welcome img {
    float: left;
    width: 192px;
    height: 192px;
    margin: 0 20px 20px 0;
    border-radius: 8px;
}

.welcome p {
    line-height: 1.6;
    margin-bottom: 1em;
}

.welcome::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 600px) {
    .welcome img {
        float: none;
        display: block;
        margin: 0 auto 20px;
        width: 150px;
        height: 150px;
    }
}

/* Additional styles */
main {
    padding: 0rem;
    padding-bottom: 100px;
    margin-top: 60px;
}

/* Footer styles (dark theme to match header) */
footer {
    background-color: #333;
    color: white;
    text-align: left;
    padding: 0.25rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.75rem;
    line-height: 1.2;
}

footer p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #66b3ff;
}

footer i, footer img.custom-icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    max-width: 1em;
    max-height: 1em;
    object-fit: contain;
    display: inline-block;
}

footer img.custom-icon {
    image-rendering: auto;
}

/* Styles for provider icons in the API keys widget */
#api-keys-wrapper .provider-icon {
    font-size: 48px;
    color: #007bff;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
}

#api-keys-wrapper .provider-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Styles for provider radio icons */
#settings-methods .provider-radio-icon {
    font-size: 48px;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

#settings-methods .provider-radio-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

#settings-methods input[type="radio"]:checked + .provider-radio-icon {
    color: #007bff;
}

#settings-methods .provider-radio-icon:hover {
    color: #007bff;
}

/* Custom icon adjustments */
.custom-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.custom-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

footer .custom-icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

footer .custom-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}