/* ============================================
   Calculator Cards
   ============================================ */

.calc-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.calc-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.calc-card .card-header {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-bottom: none;
}

.calc-card .card-header.bg-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important;
}

.calc-card .card-header.bg-success {
    background: linear-gradient(135deg, #198754, #157347) !important;
}

.calc-card .card-body {
    padding: 1.25rem;
}

/* ============================================
   Input / Output Gruppen
   ============================================ */

.calc-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.35rem;
}

.calc-unit {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
}

.calc-input {
    font-size: 1.1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    border: 2px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.calc-output {
    font-size: 1.1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    background-color: #e8f4f8;
    border: 2px solid #bee5eb;
    font-weight: 600;
    color: #155724;
}

/* ============================================
   Copy Button
   ============================================ */

.btn-copy {
    border: 2px solid #bee5eb;
    border-left: none;
    background: #e8f4f8;
    color: #6c757d;
    padding: 0.6rem 0.75rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

.btn-copy:hover {
    color: var(--brand-primary);
    background: #d1ecf1;
}

/* ============================================
   Direction Arrow between cards
   ============================================ */

.direction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #adb5bd;
    padding: 0.5rem 0;
}

@media (min-width: 768px) {
    .direction-icon {
        padding: 0;
    }
}

/* ============================================
   Responsive Tweaks
   ============================================ */

@media (max-width: 575.98px) {
    .calc-card .card-body {
        padding: 1rem;
    }

    .calc-input,
    .calc-output {
        font-size: 1rem;
    }
}
