/* ================================
   CALCULATOR UI ENHANCEMENTS
   ================================ */

.calculator-form {
    background: linear-gradient(135deg, #f8fbff, #eef3ff);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 2px solid #d6e0ff;
}

.section-heading {
    font-size: 26px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.section-heading span {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-left: 6px;
}

/* Labels */
.calculator-form label {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}
.calculator-form input[type="number"] {
    padding: 14px 16px;
    font-size: 18px;
}

/* Inputs */
.calculator-form .form-control {
    padding: 18px 22px;
    font-size: 20px;
}

.calculator-form .form-control {
    height: 52px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid #c7d2fe;
    background: #ffffff;
    transition: all 0.2s ease;
}

.calculator-form .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.15);
}

/* Buttons */
.calculator-form .btn-primary {
    width: 100%;
    height: 56px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    border: none;
    margin-top: 12px;
    box-shadow: 0 8px 18px rgba(37,99,235,0.35);
}

.calculator-form .btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #1d4ed8);
}

/* Results */
.calculator-form p {
    font-size: 20px;
    font-weight: 800;
    margin: 14px 0;
    color: #0f172a;
}

.calculator-form p span {
    float: right;
    color: #16a34a;
    font-size: 22px;
}

/* Divider */
.calculator-form hr {
    border-top: 2px dashed #c7d2fe;
    margin: 22px 0;
}

/* Price Converter Special Look */
#priceConverterForm {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: #fed7aa;
}

#priceConverterForm label {
    color: #9a3412;
}

#priceConverterForm .form-control {
    border-color: #fdba74;
}

#priceConverterForm .form-control:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249,115,22,0.2);
}

/* Mobile spacing */
@media (max-width: 768px) {
    .calculator-form {
        margin-bottom: 30px;
    }
}

/* ================================
   MOBILE FIRST – CALCULATOR UI
   ================================ */

.calculator-wrapper {
    max-width: 520px;
    margin: 0 auto;
    padding: 12px;
}

/* Mobile Heading */
.mobile-heading {
    font-size: 26px;
    font-weight: 900;
    text-align: center;
    color: #1e293b;
    margin-bottom: 20px;
}

.mobile-heading span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-top: 4px;
}

/* Form Card */
.calculator-form {
    padding: 24px;
    border-radius: 16px;
}

/* Labels */
.calculator-form label {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* BIG COZY INPUTS */
.calculator-form input,
.calculator-form select {
    width: 100%;
    height: 58px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

/* Tap Friendly Button */
.calculator-form button {
    height: 60px;
    font-size: 22px;
    font-weight: 900;
    border-radius: 16px;
}

/* RESULT DISPLAY */
.calculator-form p {
    font-size: 22px;
    font-weight: 900;
    background: #f0fdf4;
    padding: 14px 16px;
    border-radius: 12px;
    margin-top: 10px;
}

.calculator-form p span {
    float: right;
    font-size: 24px;
}

/* Stack everything cleanly on mobile */
@media (max-width: 768px) {
    .row > div {
        width: 100% !important;
    }
}


/* ================================
   TOOLS PAGE – PREMIUM GRID
================================ */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

/* Tool Card */
.tool-card {
    position: relative;
    height: 150px;
    border-radius: 18px;
    padding: 20px;
    text-decoration: none !important;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #eef2ff, #ffffff);
    border: 2px solid #e0e7ff;

    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    overflow: hidden;
}

/* Color Accent Strip */
.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #4f46e5, #2563eb);
}

/* Hover Effect */
.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.15);
    border-color: #c7d2fe;
}

/* Icon */
.tool-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
}

/* Tool Name */
.tool-card span {
    font-size: 18px;
    font-weight: 900;
    color: #1e293b;
    text-align: center;
    line-height: 1.3;
}

/* Individual Tool Themes */
.tool-qrcode::before { background: linear-gradient(90deg, #22c55e, #16a34a); }
.tool-password::before { background: linear-gradient(90deg, #ef4444, #dc2626); }
.tool-wordcount::before { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.tool-pdf::before { background: linear-gradient(90deg, #f59e0b, #d97706); }

/* Mobile polish */
@media (max-width: 768px) {
    .tool-card {
        height: 140px;
    }
}

/* Tool Themes */
.tool-surface::before {
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.tool-price::before {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.tool-copper::before {
    background: linear-gradient(90deg, #b45309, #92400e);
}

.tool-chrome::before {
    background: linear-gradient(90deg, #64748b, #334155);
}

.tool-micron::before {
    background: linear-gradient(90deg, #7c3aed, #5b21b6);
}

/* ================================
   ACTIVE NAV LINK – GRAVURE TOOLS
================================ */

.breadcrumb li.active a,
.nav li.active > a {
    display: inline-block;
    padding: 10px 16px 14px; /* extra bottom padding */
    font-weight: 800;
    color: #ffffff !important;

    background: linear-gradient(135deg, #4f46e5, #2563eb);
    border-radius: 10px;

    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

/* Slight lift for clarity */
.breadcrumb li.active a:hover,
.nav li.active > a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #4338ca, #1d4ed8);
}

/* Space below active item */
.breadcrumb li.active,
.nav li.active {
    margin-bottom: 8px;
}

.loader-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    font-size: 18px;
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255,255,255,0.2);
    border-top: 6px solid #00ffd5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#preview {
    opacity: 0;
    transition: opacity 0.5s ease;
}



