/* ==========================================================================
   Toplama Shortcode Styles
   ========================================================================== */

.toplama-wrapper {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    max-width: 500px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.toplama-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.toplama-inputs {
    margin-bottom: 12px;
}

.toplama-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.toplama-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -moz-appearance: textfield;
}

.toplama-input::-webkit-inner-spin-button,
.toplama-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.toplama-input:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.toplama-operator {
    font-size: 20px;
    font-weight: 700;
    color: #888;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    user-select: none;
}

.toplama-add-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.toplama-add-row:hover {
    border-color: #4a90d9;
    color: #4a90d9;
    background: rgba(74, 144, 217, 0.05);
}

.toplama-remove-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.toplama-remove-row:hover {
    background: #fee;
    color: #d32f2f;
}

.toplama-actions {
    margin-bottom: 12px;
}

.toplama-calculate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4a90d9;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.toplama-calculate:hover {
    background: #3a7fc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
}

.toplama-calculate:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(74, 144, 217, 0.2);
}

.toplama-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f9fc;
    border: 1px solid #e0e4ec;
    border-radius: 6px;
    padding: 12px 16px;
}

.toplama-result-label {
    font-size: 15px;
    font-weight: 600;
    color: #555;
}

.toplama-result-value {
    font-size: 22px;
    font-weight: 700;
    color: #2e7d32;
    min-width: 40px;
    text-align: right;
}

/* Responsive */
@media (max-width: 480px) {
    .toplama-wrapper {
        padding: 15px;
    }

    .toplama-row {
        gap: 6px;
    }

    .toplama-input {
        padding: 8px 10px;
        font-size: 14px;
    }

    .toplama-operator {
        font-size: 18px;
        width: 20px;
    }

    .toplama-result-value {
        font-size: 18px;
    }

    .toplama-calculate {
        padding: 10px 20px;
        font-size: 14px;
    }
}