/* ============================================================
   SHUTTER COUNT CHECKER - BRAND THEME
   Matches Notchlens brand colors with light body
   ============================================================ */

/* Root Variables */
:root {
    --sc-primary: #C1018A;
    --sc-primary-dark: #7E0856;
    --sc-primary-rgb: 193, 1, 138;
    --sc-secondary: #F8F9FA;
    --sc-text-dark: #1A1A2E;
    --sc-text-muted: #6B7280;
    --sc-text-light: #FFFFFF;
    --sc-border-light: #E9ECEF;
    --sc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --sc-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --sc-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --sc-radius-lg: 20px;
    --sc-radius-md: 16px;
    --sc-radius-sm: 12px;
}

/* ============================================================
   HERO SECTION - BRAND GRADIENT
   ============================================================ */

.sc-hero {
    background: linear-gradient(135deg, #C1018A 0%, #7E0856 100%);
    padding: 80px 0 50px;
    position: relative;
    overflow: hidden;
}

/* Brand Glow Effects */
.sc-hero .glow-top-right {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sc-hero .glow-bottom-left {
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sc-hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Badge */
.sc-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Hero Headline */
.sc-hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.sc-hero .subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 520px;
    line-height: 1.6;
    margin-top: 8px;
}

/* Brand Chips - Light Version */
.sc-brand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.sc-brand-chips .chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 18px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.sc-brand-chips .chip.highlight {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   TOOL SECTION - LIGHT BODY
   ============================================================ */

.sc-tool-section {
    padding: 40px 0 60px;
    background: #F8F9FA;
}

.sc-tool-card {
    background: #fff;
    border: 1px solid var(--sc-border-light);
    border-radius: var(--sc-radius-lg);
    padding: 40px;
    height: 100%;
    box-shadow: var(--sc-shadow-sm);
    transition: all 0.3s ease;
}

.sc-tool-card:hover {
    box-shadow: var(--sc-shadow-md);
}

.sc-tool-card .card-title {
    color: var(--sc-text-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Left Column - Upload Area */
.sc-upload-zone {
    border: 2px dashed #D1D5DB;
    border-radius: var(--sc-radius-md);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FAFBFC;
    position: relative;
}

.sc-upload-zone:hover {
    border-color: var(--sc-primary);
    background: #FDF2FA;
    transform: scale(1.01);
}

.sc-upload-zone.dragover {
    border-color: var(--sc-primary);
    background: #FCE8F5;
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(193, 1, 138, 0.1);
}

.sc-upload-zone .upload-icon {
    font-size: 4rem;
    color: var(--sc-primary);
    margin-bottom: 12px;
    display: block;
}

.sc-upload-zone h5 {
    font-weight: 600;
    color: var(--sc-text-dark);
    margin-bottom: 4px;
}

.sc-upload-zone p {
    color: var(--sc-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.sc-upload-zone .file-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
}

.sc-upload-zone .file-types .badge {
    font-weight: 500;
    font-size: 0.65rem;
    padding: 4px 12px;
    border-radius: 50px;
    background: #E9ECEF;
    color: #495057;
    border: none;
}

.sc-upload-zone .file-types .badge.raw {
    background: #FFF3CD;
    color: #856404;
}

.sc-upload-zone .file-types .badge.pro {
    background: #D1ECF1;
    color: #0C5460;
}

/* File Preview */
.sc-file-preview {
    display: none;
    background: #F8F9FA;
    border: 1px solid var(--sc-border-light);
    border-radius: var(--sc-radius-sm);
    padding: 16px 20px;
    margin-top: 20px;
    align-items: center;
    gap: 16px;
}

.sc-file-preview.show {
    display: flex;
}

.sc-file-preview .file-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--sc-radius-sm);
    background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sc-file-preview .file-info {
    flex: 1;
    min-width: 0;
}

.sc-file-preview .file-info .file-name {
    font-weight: 600;
    color: var(--sc-text-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-file-preview .file-info .file-meta {
    font-size: 0.8rem;
    color: var(--sc-text-muted);
}

.sc-file-preview .file-info .file-meta .badge {
    font-weight: 500;
    font-size: 0.65rem;
    background: #E9ECEF;
    color: #495057;
}

.sc-file-preview .remove-file {
    color: #DC3545;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.sc-file-preview .remove-file:hover {
    background: #FEE2E2;
}

/* Progress */
.sc-upload-progress {
    display: none;
    margin-top: 20px;
}

.sc-upload-progress.show {
    display: block;
}

.sc-upload-progress .progress {
    height: 6px;
    border-radius: 50px;
    background: #E9ECEF;
    overflow: hidden;
}

.sc-upload-progress .progress-bar {
    background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-primary-dark) 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.sc-upload-progress .progress-text {
    font-size: 0.8rem;
    color: var(--sc-text-muted);
    margin-top: 8px;
    text-align: center;
}

/* Check Button */
.sc-btn-check {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--sc-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: none;
    position: relative;
    overflow: hidden;
}

.sc-btn-check.show {
    display: block;
}

.sc-btn-check:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(193, 1, 138, 0.35);
}

.sc-btn-check:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   RIGHT COLUMN - HOW TO USE (Visual Guide)
   ============================================================ */

.sc-guide-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sc-guide-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: #F8F9FA;
    border-radius: var(--sc-radius-sm);
    border: 1px solid var(--sc-border-light);
    transition: all 0.3s ease;
}

.sc-guide-item:hover {
    border-color: var(--sc-primary);
    background: #FDF2FA;
}

.sc-guide-item .step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.sc-guide-item .step-content h6 {
    font-weight: 600;
    color: var(--sc-text-dark);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.sc-guide-item .step-content p {
    color: var(--sc-text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.sc-guide-item .step-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sc-guide-item .step-tips .tip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--sc-text-muted);
    border: 1px solid var(--sc-border-light);
}

.sc-guide-item .step-tips .tip-badge i {
    color: var(--sc-primary);
    font-size: 0.65rem;
}

/* Pro Tip Item */
.sc-guide-item.pro-tip {
    border-color: var(--sc-primary);
    background: #FDF2FA;
}

.sc-guide-item.pro-tip .step-number {
    background: rgba(193, 1, 138, 0.15);
    color: var(--sc-primary);
    font-size: 1.2rem;
}

/* ============================================================
   RESULT MODAL - SweetAlert Customization (FIXED)
   ============================================================ */

.sc-swal-result .swal2-popup {
    background: #FFFFFF !important;
    border-radius: var(--sc-radius-lg) !important;
    color: var(--sc-text-dark) !important;
    padding: 2rem !important;
}

.sc-swal-result .swal2-title {
    color: var(--sc-text-dark) !important;
    font-weight: 700 !important;
}

.sc-swal-result .swal2-html-container {
    color: var(--sc-text-dark) !important;
    margin: 1rem 0 !important;
}

.sc-swal-result .swal2-confirm {
    background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-primary-dark) 100%) !important;
    border: none !important;
    border-radius: var(--sc-radius-sm) !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    color: #fff !important;
}

.sc-swal-result .swal2-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(193, 1, 138, 0.35);
}

.sc-swal-result .swal2-icon {
    border-color: var(--sc-primary) !important;
    color: var(--sc-primary) !important;
}

/* Count Display in Swal */
.sc-swal-count {
    font-size: 4rem;
    font-weight: 800;
    color: var(--sc-text-dark);
    line-height: 1;
    letter-spacing: -1px;
    margin: 12px 0 8px;
}

.sc-swal-count.proxy {
    color: #F59E0B;
}

.sc-swal-count.na {
    color: #DC3545;
    font-size: 2.5rem;
}

.sc-swal-label {
    color: var(--sc-text-muted);
    font-size: 0.9rem;
}

.sc-swal-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 8px;
}

.sc-swal-badge.exact {
    background: #D1FAE5;
    color: #065F46;
}

.sc-swal-badge.proxy {
    background: #FEF3C7;
    color: #92400E;
}

.sc-swal-badge.na {
    background: #FEE2E2;
    color: #991B1B;
}

.sc-swal-meta {
    text-align: left;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--sc-border-light);
}

.sc-swal-meta .meta-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
}

.sc-swal-meta .meta-row .label {
    color: var(--sc-text-muted);
}

.sc-swal-meta .meta-row .value {
    color: var(--sc-text-dark);
    font-weight: 500;
}

.sc-swal-info-box {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: left;
}

.sc-swal-info-box.warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
}

.sc-swal-info-box.warning p {
    color: #92400E;
    margin: 0;
    font-size: 0.85rem;
}

.sc-swal-info-box.error {
    background: #FEE2E2;
    border: 1px solid #DC3545;
}

.sc-swal-info-box.error p {
    color: #991B1B;
    margin: 0;
    font-size: 0.85rem;
}

.sc-swal-info-box.success {
    background: #D1FAE5;
    border: 1px solid #10B981;
}

.sc-swal-info-box.success p {
    color: #065F46;
    margin: 0;
    font-size: 0.85rem;
}

/* ============================================================
   PROCESSING OVERLAY
   ============================================================ */

.sc-processing-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.sc-processing-overlay.active {
    display: flex;
}

.sc-processing-overlay .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E9ECEF;
    border-top-color: var(--sc-primary);
    border-radius: 50%;
    animation: scSpin 0.8s linear infinite;
}

@keyframes scSpin {
    to { transform: rotate(360deg); }
}

.sc-processing-overlay .text {
    margin-top: 16px;
    color: var(--sc-text-muted);
    font-size: 0.9rem;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.sc-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 380px;
}

.sc-toast {
    background: #fff;
    border-radius: var(--sc-radius-sm);
    box-shadow: var(--sc-shadow-md);
    padding: 16px 20px;
    animation: scSlideInRight 0.3s ease;
    margin-bottom: 10px;
    border-left: 4px solid var(--sc-primary);
}

.sc-toast .toast-header {
    border: none;
    padding: 0 0 8px;
    background: transparent;
    color: var(--sc-text-dark);
}

.sc-toast .toast-body {
    padding: 0;
    font-size: 0.9rem;
    color: var(--sc-text-muted);
}

@keyframes scSlideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   HIDDEN FILE INPUT
   ============================================================ */

#fileInput {
    display: none;
}

/* ============================================================
   FOOTER - DARK
   ============================================================ */

.sc-footer {
    background: #1A1A2E;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    margin-top: 0;
}

.sc-footer .footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.sc-footer .footer-brand i {
    color: var(--sc-primary);
}

.sc-footer .footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.7;
    max-width: 300px;
}

.sc-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-decoration: none;
}

.sc-footer .footer-social a:hover {
    background: var(--sc-primary);
    color: #fff;
    transform: translateY(-3px);
}

.sc-footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1rem;
}

.sc-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sc-footer .footer-links li {
    padding: 5px 0;
}

.sc-footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sc-footer .footer-links a:hover {
    color: var(--sc-primary);
    padding-left: 5px;
}

.sc-footer .footer-subscribe {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.sc-footer .footer-subscribe .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    flex: 1;
}

.sc-footer .footer-subscribe .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sc-footer .footer-subscribe .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--sc-primary);
    box-shadow: none;
}

.sc-footer .footer-subscribe .btn {
    background: var(--sc-primary);
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sc-footer .footer-subscribe .btn:hover {
    background: var(--sc-primary-dark);
    transform: translateX(3px);
}

.sc-footer hr {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 30px 0 20px;
}

.sc-footer .footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

.sc-footer .footer-bottom .bi-heart-fill {
    display: inline-block;
    animation: scHeartbeat 1.5s ease-in-out infinite;
}

@keyframes scHeartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .sc-tool-card {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .sc-hero {
        padding: 50px 0 60px;
        text-align: center;
    }
    
    .sc-hero .subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .sc-brand-chips {
        justify-content: center;
    }
    
    .sc-hero h1 {
        font-size: 2.2rem;
    }
    
    .sc-tool-section {
        padding: 20px 0 40px;
    }
    
    .sc-tool-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .sc-upload-zone {
        padding: 32px 16px;
    }
    
    .sc-upload-zone .upload-icon {
        font-size: 3rem;
    }
    
    .sc-guide-item {
        padding: 12px;
    }
    
    .sc-swal-count {
        font-size: 3rem;
    }

    .sc-footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .sc-footer .footer-desc {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .sc-footer .footer-social {
        justify-content: center;
    }
    
    .sc-footer .footer-subscribe {
        flex-direction: column;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .sc-footer .footer-subscribe .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sc-hero h1 {
        font-size: 1.6rem;
    }
    
    .sc-hero .subtitle {
        font-size: 0.95rem;
    }
    
    .sc-tool-card {
        padding: 16px;
    }
    
    .sc-guide-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .sc-guide-item .step-tips {
        justify-content: center;
    }
    
    .sc-swal-count {
        font-size: 2.5rem;
    }
    
    .sc-toast-container {
        right: 10px;
        left: 10px;
        max-width: 100%;
    }
}