/* ==========================================================================
   SERAPHIM TOOL UI -- Premium Design System
   Shared across scanners, generators, calculators, checkers, quizzes,
   advisors, builders, and audits.
   https://seraphim.vn
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. GLASSMORPHISM SYSTEM
   -------------------------------------------------------------------------- */

/* Glassmorphic card -- primary container */
.tool-card, .generator-card, .scanner-card, .checker-card, .calculator-card {
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 32px;
}

/* Elevated glass surface */
.tool-surface-elevated {
    background: rgba(22, 22, 35, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

/* Glass input fields */
.tool-input, input[type="text"], input[type="email"], input[type="number"], input[type="tel"],
select, textarea {
    background: rgba(8, 8, 18, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #e0e0e0 !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    width: 100%;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    border-color: rgba(0, 255, 136, 0.4) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1) !important;
    outline: none !important;
}

/* --------------------------------------------------------------------------
   B. PREMIUM GRADIENT SYSTEM
   -------------------------------------------------------------------------- */

/* Hero gradient background for tool pages */
.tool-hero, .generator-hero, .scanner-hero {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 150, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(138, 43, 226, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, #0a0a14 0%, #0d0d1a 100%);
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

/* Accent gradient overlays */
.tool-gradient-green {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 200, 0.05) 100%);
}
.tool-gradient-blue {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 100, 255, 0.05) 100%);
}
.tool-gradient-purple {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(100, 50, 200, 0.05) 100%);
}
.tool-gradient-red {
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.1) 0%, rgba(200, 30, 30, 0.05) 100%);
}

/* Shimmer line -- decorative gradient stripe */
.tool-shimmer {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.5), rgba(0, 200, 255, 0.3), transparent);
    margin: 32px 0;
}

/* --------------------------------------------------------------------------
   C. TYPOGRAPHY SYSTEM
   -------------------------------------------------------------------------- */

/* Tool page typography hierarchy */
.tool-title, h1 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 16px !important;
}

.tool-subtitle, h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 12px !important;
}

.tool-section-label {
    font-family: 'Imbue', serif !important;
    font-size: 11px !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: rgba(0, 255, 136, 0.7) !important;
    margin-bottom: 8px !important;
}

.tool-body, p, li {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

label {
    font-size: 13px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 6px !important;
    display: block !important;
    font-weight: 500 !important;
}

/* --------------------------------------------------------------------------
   D. BUTTON SYSTEM
   -------------------------------------------------------------------------- */

/* Primary CTA button */
.tool-btn-primary, button[type="submit"], .btn-primary, .generate-btn, .scan-btn, .check-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%) !important;
    color: #000 !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.25) !important;
    width: 100%;
    max-width: 400px;
}

.tool-btn-primary:hover, button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4) !important;
}

/* Secondary / outline button */
.tool-btn-secondary, .btn-secondary, .btn-outline {
    background: transparent !important;
    color: #00ff88 !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.tool-btn-secondary:hover {
    background: rgba(0, 255, 136, 0.1) !important;
    border-color: rgba(0, 255, 136, 0.5) !important;
}

/* --------------------------------------------------------------------------
   E. RESULTS / OUTPUT SECTION
   -------------------------------------------------------------------------- */

/* Results container */
.tool-results, .results-container, .output-section, .report-section {
    background: rgba(8, 12, 20, 0.9) !important;
    border: 1px solid rgba(0, 255, 136, 0.15) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-top: 24px !important;
    position: relative;
    overflow: hidden;
}

.tool-results::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, #00d4ff, transparent);
}

/* Score / gauge displays */
.tool-score {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Progress bars */
.tool-progress {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    height: 8px !important;
    overflow: hidden !important;
}

.tool-progress-fill {
    background: linear-gradient(90deg, #00ff88, #00d4ff) !important;
    height: 100% !important;
    border-radius: 8px !important;
    transition: width 1s ease !important;
}

/* --------------------------------------------------------------------------
   F. RESPONSIVE / MOBILE
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .tool-card { padding: 20px !important; border-radius: 12px !important; }
    .tool-hero { padding: 60px 16px !important; min-height: 30vh; }
    .tool-title, h1 { font-size: clamp(1.6rem, 7vw, 2.5rem) !important; }
    .tool-btn-primary, button[type="submit"] { padding: 14px 24px !important; }
    input, select, textarea { font-size: 16px !important; } /* prevent iOS zoom */
}

/* --------------------------------------------------------------------------
   G. ADDITIONAL PREMIUM TOUCHES
   -------------------------------------------------------------------------- */

/* Scan line overlay for tool pages */
.tool-scanlines::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    z-index: 9999;
}

/* Checkbox and radio styling */
input[type="checkbox"], input[type="radio"] {
    accent-color: #00ff88 !important;
    width: 18px !important;
    height: 18px !important;
}

/* Table styling for results */
table {
    width: 100% !important;
    border-collapse: collapse !important;
}
th {
    background: rgba(0, 255, 136, 0.08) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 12px 16px !important;
    text-align: left !important;
    font-size: 12px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2) !important;
}
td {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
}
tr:hover td {
    background: rgba(0, 255, 136, 0.03) !important;
}

/* Select dropdown styling */
select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300ff88' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: rgba(0, 255, 136, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 136, 0.5); }
