.kf-calculator {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 1rem;
}

.kf-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kf-icon {
    flex-shrink: 0;
    background-color: #4040ff;
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kf-icon svg {
    width: 24px;
    height: 24px;
}

.kf-title h6 {
    margin: 0;
    color: #000;
}

.kf-title p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.kf-form {
    background-color: #f8f9ff;
    padding: 2rem;
    border-radius: 1rem;
}

.kf-form-group {
    margin-bottom: 1.5rem;
}

.kf-form-group:last-child {
    margin-bottom: 0;
}

.kf-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #000;
}

.kf-select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0ff;
    border-radius: 0.5rem;
    background-color: white;
    color: #666;
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kf-select:hover {
    border-color: #4040ff;
}

.kf-select:focus {
    outline: none;
    border-color: #4040ff;
    box-shadow: 0 0 0 3px rgba(64,64,255,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .kf-calculator {
        max-width: 100%;
        margin: 0;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .kf-form {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .kf-header {
        padding: 0;
        flex-direction: column;
        gap: 1rem;
    }
    
    .kf-icon {
        padding: 0.8rem;
    }

    .kf-title h6 {
        font-size: 1.5rem;
    }

    .kf-title p {
        font-size: 0.9rem;
    }

    .kf-modal-content {
        margin: 0.25rem;
        padding: 1.5rem;
        border-radius: 1rem;
        max-width: calc(100% - 0.5rem);
        height: auto;
    }
}

.kf-years-container {
    margin-top: 2rem;
}

.kf-year-section {
    margin-bottom: 2rem;
}

.kf-year-section h3 {
    color: #4040ff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.kf-year-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: end;
}

.kf-year-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kf-number-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kf-number-input button {
    min-width: 28px;
    width: 28px;
    height: 28px;
    border: 1px solid #e0e0ff;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #4040ff;
    padding: 0;
}

.kf-number-input button:hover {
    background: #f0f0ff;
}

.kf-number-input input {
    width: 50px;
    text-align: center;
    padding: 0.4rem;
    border: 1px solid #e0e0ff;
    border-radius: 4px;
    font-size: 1rem;
}

.kf-amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    padding: 0.5rem 0;
}

.kf-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e0e0ff;
}

.kf-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.kf-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.kf-btn-primary {
    background: #4040ff;
    color: white;
}

.kf-btn-secondary {
    background: #f0f0ff;
    color: #4040ff;
}

.kf-total {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    color: #666;
}

.kf-total span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
}

@media (max-width: 768px) {
    .kf-year-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .kf-summary {
        flex-direction: column;
        align-items: stretch;
    }
    
    .kf-total {
        margin: 1rem 0;
        align-items: center;
    }
}

.kf-simple-form {
    margin-top: 2rem;
}

.kf-form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 2rem;
    align-items: end;
}

.kf-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .kf-form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .kf-kuantiti {
        text-align: left;
    }
}

.kf-number-input input[type="number"] {
    width: 100%;
    text-align: right;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0ff;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #666;
}

.kf-number-input input[type="number"]:focus {
    outline: none;
    border-color: #4040ff;
    box-shadow: 0 0 0 3px rgba(64,64,255,0.1);
}

.kf-kuantiti {
    text-align: center;
}

.kf-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.kf-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    margin: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.kf-modal-content h3 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: #000;
}

.kf-modal-content .kf-form-group {
    margin-bottom: 1.25rem;
}

.kf-modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #000;
}

.kf-modal-content input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0ff;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #666;
    transition: all 0.2s ease;
}

.kf-modal-content input:focus {
    outline: none;
    border-color: #4040ff;
    box-shadow: 0 0 0 3px rgba(64,64,255,0.1);
}

.kf-order-summary {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #f8f9ff;
    border-radius: 0.75rem;
    border: 1px solid #e0e0ff;
}

.kf-order-summary p {
    margin: 0;
    color: #666;
}

.kf-order-summary .kf-amount {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
}

.kf-form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .kf-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
} 