﻿.calculator-quiz {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 2rem auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.quiz-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    border-left: 4px solid #4facfe;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quiz-item:hover {
    transform: translateX(5px);
}

.quiz-item h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.answer {
    color: #4facfe;
    font-weight: 600;
    margin: 0px;
}

.calculator-quiz h2 {
    color: #34495e;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}


a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    //margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}






.resp-sharing-button__link,
.resp-sharing-button__icon {
    display: inline-block
}

.resp-sharing-button__link {
    text-decoration: none;
    color: #fff;
    margin: 0.5em
}

.resp-sharing-button {
    border-radius: 5px;
    transition: 25ms ease-out;
    padding: 0.5em 0.75em;
    font-family: Helvetica Neue,Helvetica,Arial,sans-serif
}

.resp-sharing-button__icon svg {
    width: 1em;
    height: 1em;
    margin-right: 0.4em;
    vertical-align: top
}

.resp-sharing-button--small svg {
    margin: 0;
    vertical-align: middle
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
    stroke: #fff;
    fill: none
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
    fill: #fff;
    stroke: none
}

.resp-sharing-button--twitter {
    background-color: #55acee
}

    .resp-sharing-button--twitter:hover {
        background-color: #2795e9
    }

.resp-sharing-button--pinterest {
    background-color: #bd081c
}

    .resp-sharing-button--pinterest:hover {
        background-color: #8c0615
    }

.resp-sharing-button--facebook {
    background-color: #3b5998
}

    .resp-sharing-button--facebook:hover {
        background-color: #2d4373
    }

.resp-sharing-button--tumblr {
    background-color: #35465C
}

    .resp-sharing-button--tumblr:hover {
        background-color: #222d3c
    }

.resp-sharing-button--reddit {
    background-color: #5f99cf
}

    .resp-sharing-button--reddit:hover {
        background-color: #3a80c1
    }

.resp-sharing-button--google {
    background-color: #dd4b39
}

    .resp-sharing-button--google:hover {
        background-color: #c23321
    }

.resp-sharing-button--linkedin {
    background-color: #0077b5
}

    .resp-sharing-button--linkedin:hover {
        background-color: #046293
    }

.resp-sharing-button--email {
    background-color: #777
}

    .resp-sharing-button--email:hover {
        background-color: #5e5e5e
    }

.resp-sharing-button--xing {
    background-color: #1a7576
}

    .resp-sharing-button--xing:hover {
        background-color: #114c4c
    }

.resp-sharing-button--whatsapp {
    background-color: #25D366
}

    .resp-sharing-button--whatsapp:hover {
        background-color: #1da851
    }

.resp-sharing-button--hackernews {
    background-color: #FF6600
}

    .resp-sharing-button--hackernews:hover, .resp-sharing-button--hackernews:focus {
        background-color: #FB6200
    }

.resp-sharing-button--vk {
    background-color: #507299
}

    .resp-sharing-button--vk:hover {
        background-color: #43648c
    }

.resp-sharing-button--facebook {
    background-color: #3b5998;
    border-color: #3b5998;
}

    .resp-sharing-button--facebook:hover,
    .resp-sharing-button--facebook:active {
        background-color: #2d4373;
        border-color: #2d4373;
    }

.resp-sharing-button--twitter {
    background-color: #55acee;
    border-color: #55acee;
}

    .resp-sharing-button--twitter:hover,
    .resp-sharing-button--twitter:active {
        background-color: #2795e9;
        border-color: #2795e9;
    }

.resp-sharing-button--email {
    background-color: #777777;
    border-color: #777777;
}

    .resp-sharing-button--email:hover,
    .resp-sharing-button--email:active {
        background-color: #5e5e5e;
        border-color: #5e5e5e;
    }

.resp-sharing-button--pinterest {
    background-color: #bd081c;
    border-color: #bd081c;
}

    .resp-sharing-button--pinterest:hover,
    .resp-sharing-button--pinterest:active {
        background-color: #8c0615;
        border-color: #8c0615;
    }

.resp-sharing-button--reddit {
    background-color: #5f99cf;
    border-color: #5f99cf;
}

    .resp-sharing-button--reddit:hover,
    .resp-sharing-button--reddit:active {
        background-color: #3a80c1;
        border-color: #3a80c1;
    }

.resp-sharing-button--whatsapp {
    background-color: #25D366;
    border-color: #25D366;
}

.resp-sharing-button--whatsapp:hover,
.resp-sharing-button--whatsapp:active {
    background-color: #1DA851;
    border-color: #1DA851;
}





.calc-header {
    background: linear-gradient(135deg, #e13131, #bb4741);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.calc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.calc-header .header-content {
    position: relative;
    z-index: 2;
}

.calc-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.calc-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 0;
    font-weight: 400;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .calc-header {
        padding: 2rem 0;
        border-radius: 15px;
    }
    
    .calc-header h1 {
        font-size: 2rem;
    }
    
    .calc-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .calc-header h1 {
        font-size: 1.75rem;
    }
    
    .calc-header p {
        font-size: 1rem;
    }
}

.calc-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calculator-section, .content-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.content-section {
    margin-bottom: 30px;
}

.content-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 3px solid #4facfe;
    padding-bottom: 10px;
}

.main-content {
    padding: 40px;
}

.cal-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

@media (max-width: 768px) {
  .cal-label {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
  }
}

.cal-input-group {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    height: 50px;
}

@media (max-width: 768px) {
  .cal-input-group {
    height: 50px !important;
    font-size: 18px !important;
    padding: 12px 16px !important;
  }
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

@media (max-width: 768px) {
  .calculate-btn {
    width: 100% !important;
    font-size: 25px !important;
    margin-top: 25px !important;
    padding: 15px !important;
  }
}


.result-error {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    display: none;
    animation: slideIn 0.5s ease;
}

.error-modern { 
    display: flex; 
    align-items: center; 
    padding: 12px 16px; 
    background: linear-gradient(135deg, #ff6b6b, #ee5a52); 
    color: white; 
    border-radius: 10px; 
    font-size: 14px; 
    font-weight: 500; 
    margin-top: 8px; 
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3); 
    animation: slideInError 0.3s ease;
} 

.error-modern::before {
    content: "⚠️"; 
    margin-right: 8px;
    font-size: 16px; 
}

@keyframes slideInError {
    from { 
        opacity: 0;
        transform: translateY(-10px); 
    } to {
        opacity: 1;
        transform: translateY(0); 
    }
}


.notification-success {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    animation: slideInSuccess 0.4s ease;
}

.cal-completed::placeholder {
    color: green;
    opacity: 1;
    font-weight: bold !important;
}

.cal-completed {
    border: 2px solid green;
    background: #d9f9d9;
}

.cal-normal::placeholder {
  opacity: 0.8;
  font-weight: 400 !important;
}

.cube-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px 0;
    perspective: 800px;
}


.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #4facfe;
}

.quiz-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
}

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

.calculator-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: block;
}

.calculator-item:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}

.calculator-item img {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.calculator-item:hover img {
    transform: scale(1.1);
}



.tuto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.tuto-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.tuto-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tuto-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.tuto-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: white;
}

.instruction-label {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.tuto-title {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.instruction-label i {
    margin-right: 8px;
    color: #48bb78;
}

.field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.field-tag {
    background: linear-gradient(135deg, #e6fffa, #c6f6d5);
    color: #2f855a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #9ae6b4;
}

.empty-field-tag {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    border: 1px solid #fc8181;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 20px 0;
}

/* SVG interactive value updates */
#svg-container svg {
    transition: opacity 0.3s ease;
}

@keyframes svgValuePulse {
    0% { opacity: 0.3; fill: #ff7043; }
    100% { opacity: 1; }
}

.svg-value-updated {
    animation: svgValuePulse 0.5s ease-out;
}