/* Premium Aesthetics */
:root {
    --primary: #007AFF;
    --success: #34C759;
    --dark: #1C1C1E;
    --light: #F2F2F7;
    --white: #FFFFFF;
}

#skf-wrapper {
    max-width: 500px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--dark);
}

.skf-intro h2 {
    font-weight: 700;
    margin-bottom: 10px;
}

.skf-intro p {
    padding: 0 20px;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

/* Buttons */
.skf-btn,
.skf-btn-action,
.skf-btn-finish {
    background: linear-gradient(135deg, #007AFF, #0055ff);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: transform 0.1s ease, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.skf-btn:active {
    transform: scale(0.98);
}

.skf-btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* Calibration */
.skf-card-outline {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #E5E5EA;
    /* Apple Gray */
    margin: 20px 0;
    border-radius: 16px;
    position: relative;
}

#skf-card-box {
    background: linear-gradient(135deg, #333, #000);
    height: 53.98px;
    width: 85.60px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

#skf-card-box::after {
    content: attr(data-label);
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

#skf-ppi-slider {
    width: 100%;
    margin: 20px 0;
    accent-color: var(--primary);
}

/* Ruler Tool */
.skf-ruler-container {
    height: 350px;
    /* Functional height on mobile */
    background: #FAFAFA;
    border: 1px solid #E5E5EA;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: crosshair;
}

#skf-virtual-ruler {
    width: 100%;
    height: 100%;
    position: relative;
}

.skf-tick-cm {
    position: absolute;
    left: 0;
    width: 40%;
    height: 1px;
    background: #333;
}

.skf-tick-cm span {
    position: absolute;
    left: 105%;
    top: -6px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.skf-tick-half {
    position: absolute;
    left: 0;
    width: 20%;
    height: 1px;
    background: #999;
}

/* Results */
.skf-result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.skf-result-table th {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    color: #888;
}

.skf-result-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}

.active-size {
    background-color: rgba(52, 199, 89, 0.15);
    /* Light Green */
    font-weight: 700;
    color: #248A3D;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}