/* ===== BASE ===== */
.fc-modern-wrapper {
    margin: 20px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== CARD ===== */
.fc-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e8ecf1;
    transition: box-shadow 0.3s ease;
}

.fc-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* ===== HEADER ===== */
.fc-card-header {
    background: linear-gradient(135deg, #65c082 0%, #42a68c 100%);
    padding: 20px 25px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fc-card-header i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.fc-card-header .fc-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    flex: 1;
    letter-spacing: -0.3px;
}

.fc-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

/* ===== BODY ===== */
.fc-card-body {
    padding: 25px;
    background: #fafbfc;
}

/* ===== NOTE ===== */
.fc-note {
        background: #e4f3ff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #0b3454;
    margin-bottom: 20px;
    border-left: 4px solid #9cd4ff;
}

.fc-note i {
    color: #0b3454;
    margin-right: 8px;
}

/* ===== INPUT GROUP ===== */
.fc-input-group {
    margin-bottom: 18px;
}

.fc-input-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #1a2332;
}

.fc-input-wrapper {
    position: relative;
}

.fc-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e5ec;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #1a2332;
}

.fc-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.fc-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5b5;
    font-size: 14px;
}

.fc-input-wrapper .fc-input {
    padding-left: 42px;
}

.fc-input-wrapper select.fc-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa5b5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ===== BUTTON ===== */
.fc-btn {
    background: linear-gradient(135deg, #65c082 0%, #42a68c 100%);
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.3px;
}

.fc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.35);
}

.fc-btn:active {
    transform: translateY(0);
}

.fc-btn i {
    margin-right: 8px;
}

/* ===== RESULT ===== */
.fc-result {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    display: none;
    border: 1px solid #e8ecf1;
}

.fc-result.active {
    display: block;
    animation: fcFadeIn 0.4s ease;
}

.fc-result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.fc-result-item:last-child {
    border-bottom: none;
}

.fc-result-label {
    color: #6b7a8f;
    font-weight: 500;
}

.fc-result-value {
    font-weight: 700;
    color: #1a2332;
    font-size: 15px;
}

.fc-result-value.positive {
    color: #10b981;
}

.fc-result-value.negative {
    color: #ef4444;
}

.fc-result-value.highlight {
    color: #667eea;
    font-size: 18px;
}

/* ===== GRID ===== */
.fc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.fc-grid-2 .fc-input-group {
    margin-bottom: 0;
}

.fc-section-title {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #1a2332;
    font-weight: 600;
}

.fc-section-title i {
    margin-right: 6px;
    color: #667eea;
}

/* ===== COLORS ===== */
.fc-color-green {
    color: #10b981;
}
.fc-color-red {
    color: #ef4444;
}
.fc-color-purple {
    color: #667eea;
}

/* ===== ANIMATIONS ===== */
@keyframes fcFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .fc-card-header {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
    }

    .fc-card-header .fc-title {
        font-size: 17px;
    }

    .fc-card-body {
        padding: 16px;
    }

    .fc-input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .fc-input-wrapper .fc-input {
        padding-left: 36px;
    }

    .fc-grid-2 {
        grid-template-columns: 1fr;
    }

    .fc-btn {
        font-size: 15px;
        padding: 12px 20px;
    }

    .fc-result-value.highlight {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .fc-card-header i {
        font-size: 20px;
    }

    .fc-badge {
        font-size: 10px;
        padding: 3px 10px;
    }

    .fc-result-item {
        font-size: 14px;
        padding: 8px 0;
    }

    .fc-result-value {
        font-size: 14px;
    }
}