/*
 * DSP Support Assistant - Standard Stylesheet
 * Created: 2026-03-16
 *
 * This stylesheet standardizes the look and feel across the application
 * to follow an Apple-like aesthetic with Google fonts, rounded elements,
 * and clean spacing.
 */

/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
    /* Apple-style color palette */
    --apple-bg: #f5f5f7;
    --apple-text: #1d1d1f;
    --apple-blue: #0071e3;
    --apple-card-radius: 18px; /* Rounded corners for cards */
    --apple-border: rgba(0, 0, 0, 0.1);
    --apple-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* =========================================
   BASE STYLES
   ========================================= */
body {
    background-color: var(--apple-bg);
    color: var(--apple-text);
    /* Google Font: Inter (Apple-like) */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.022em;
}

/* =========================================
   NAVBAR (Glassmorphism)
   ========================================= */
.navbar {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--apple-border);
    padding: 12px 0;
    z-index: 1050;
    position: sticky; /* Keep navbar visible */
    top: 0;
}

.navbar-brand {
    font-weight: 600;
    color: var(--apple-text) !important;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--apple-text) !important;
    font-weight: 400;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 1;
}

/* =========================================
   BUTTONS & PILLS
   ========================================= */
/* Primary Action Button - Pill Shape */
.btn-primary {
    background-color: var(--apple-blue);
    border: none;
    border-radius: 980px; /* Maximum rounding for pill shape */
    padding: 8px 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0077ed; /* Slightly lighter blue on hover */
    transform: scale(1.02); /* Subtle scale effect */
}

/* Standard Rounded Button Override */
.btn {
    border-radius: 980px; /* Apply pill shape to other buttons generally */
}

/* Specific overrides for square-ish buttons if needed, but default to rounded */

/* =========================================
   CARDS & CONTAINERS
   ========================================= */
/* Main Card Container Style */
.card {
    background: #ffffff;
    border-radius: var(--apple-card-radius);
    border: none; /* Clean look without borders */
    box-shadow: var(--apple-shadow);
    overflow: hidden; /* Ensure content respects rounded corners */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Card Header Styling */
.card-header {
    background-color: transparent; /* Remove default gray background */
    border-bottom: 1px solid var(--apple-border);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

/* Card Body Styling */
.card-body {
    padding: 1.5rem;
}

/* Hover effect for interactive cards (optional class) */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Tool Cards (Dashboard Specific but reusable) */
.tool-card {
    background-color: white;
    border-radius: 24px; /* Slightly more rounded */
    padding: 2rem;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    overflow: hidden; /* Enforce rounded corners */
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 113, 227, 0.4);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.1);
}

.tool-card.disabled {
    background-color: #f5f5f7;
    box-shadow: none;
}

/* =========================================
   FORMS & INPUTS
   ========================================= */
/* Apple-style Labels */
.apple-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #86868b;
    margin-bottom: 6px;
    margin-left: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
}

/* Apple-style Text Inputs */
.apple-input, .form-control {
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    padding: 10px 14px;
    font-size: 0.95rem;
    background-color: #fff; /* Ensure white background */
}

.apple-input:focus, .form-control:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.1); /* Glow effect */
    outline: none;
}

/* iOS Style Switch */
.form-check-input[type="checkbox"], .ios-switch-sm {
    /* If using Bootstrap switch class, we rely on Bootstrap but can tweak */
}

/* Custom Switch Class from all_settings.html */
.ios-switch-sm {
    width: 38px !important;
    height: 22px !important;
    background-color: #e9e9ea !important;
    border: none !important;
    cursor: pointer;
    transition: background-color .15s ease-in-out;
    margin-top: 0 !important;
}

.ios-switch-sm:focus {
    outline: none !important;
    box-shadow: none !important;
}

.ios-switch-sm:checked {
    background-color: #34c759 !important; /* Apple Green */
}

/* Color Picker - DO NOT CHANGE FUNCTIONALITY */
.form-control-color {
    cursor: pointer;
    padding: 0.375rem 0.375rem; /* Default padding for color input */
}

.form-control-color::-webkit-color-swatch {
    border-radius: 6px;
    border: none;
}

.form-control-color::-moz-color-swatch {
    border-radius: 6px;
    border: none;
}

/* =========================================
   UTILITIES & FOOTER
   ========================================= */
footer {
    opacity: 0.5;
    font-size: 0.8rem;
    color: var(--apple-text);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding-bottom: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e7;
}

/* Utility to ensure text truncation works */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overflow-visible {
    overflow: visible !important;
}

/* =========================================
   ADDITIONAL COMPONENTS
   ========================================= */
/* Extracted from employee_portal.html for standardization */
.apple-input-field {
    border-radius: 12px !important;
    border: 1px solid #d2d2d7;
    padding: 10px 14px;
    font-size: 0.95rem;
    width: 100%;
    background-color: #fff;
}

.apple-input-field:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
    outline: none;
}

.apple-inset-card {
    background: #f5f5f7;
    border-radius: 18px;
}

.apple-modal {
    border-radius: 28px !important;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
