/* ==========================================
   NUBIKIT CMS v4
   STYLE : CALCULATOR TOOLS
   FILE : assets/css/tools/calculator.css
========================================== */

/* ------------------------------------------
   Layout & Container
------------------------------------------ */
.calculator-tool-wrapper {
    
    margin: 0 auto;
    padding: 0px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
}

/* ------------------------------------------
   Header Section
------------------------------------------ */
.tool-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.tool-icon-large {
    font-size: 3rem;
    line-height: 1;
    background: #f1f5f9;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-header-content .tool-title {
    margin: 0 0 8px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.tool-header-content .tool-desc {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* ------------------------------------------
   Calculator Card & Input Form
------------------------------------------ */
.calculator-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #334155;
}

.pdf-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.pdf-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ------------------------------------------
   Buttons & Selector Controls
------------------------------------------ */
.calc-mode-selector button {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.btn-secondary.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.btn-large {
    padding: 14px 24px;
    font-size: 1.05rem;
}

/* ------------------------------------------
   Result Card
------------------------------------------ */
.download-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease-in-out;
}

.download-success {
    text-align: center;
    margin-bottom: 20px;
}

.download-success .success-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.download-success h2 {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    color: #0f172a;
}

.download-success p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.download-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.download-info-item {
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-info-item span {
    font-size: 0.85rem;
    color: #64748b;
}

.download-info-item strong {
    font-size: 1.1rem;
    color: #0f172a;
    word-break: break-word;
}

/* ------------------------------------------
   Guide & FAQ Sections
------------------------------------------ */
.tool-guide,
.tool-faq {
    margin-top: 40px;
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.tool-guide h2,
.tool-faq h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.35rem;
    color: #0f172a;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.guide-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.guide-number {
    width: 28px;
    height: 28px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.guide-item h4 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    color: #0f172a;
}

.guide-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #1e293b;
}

.faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* ------------------------------------------
   Animations & Responsive
------------------------------------------ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .tool-header {
        flex-direction: column;
        text-align: center;
    }

    .calc-mode-selector {
        flex-direction: column;
    }

    .download-info-grid {
        grid-template-columns: 1fr;
    }

    .download-info-item[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}