/**
 * Delta Calculate Tool Styles
 * Fiyatlandırma aracı için stil tanımlamaları
 * 
 * @author selcukmart
 * @version 1.0
 */

/* ===================================
   Pricing Panel Styles
   =================================== */
.pricing-panel {
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pricing-panel-heading {
    font-size: 18px;
    padding: 15px;
    border-radius: 0;
}

.pricing-no-padding-left {
    padding-left: 0;
}

.pricing-mt-5 {
    margin-top: 5px;
}

.pricing-mt-10 {
    margin-top: 10px;
}

.pricing-mb-5 {
    margin-bottom: 10px;
}

.pricing-total-count {
    text-align: right;
    font-weight: 600;
    color: #3498db;
    padding: 10px 0;
}

.pricing-text-center {
    text-align: center;
}

/* ===================================
   Panel Customization
   =================================== */
.panel-primary {
    border-color: #3498db;
}

.panel-primary > .panel-heading {
    background-color: #3498db;
    background-image: none;
    border-color: #2980b9;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===================================
   Well & Form Styles
   =================================== */
.well {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border: 1px solid #e7e7e7;
}

.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

/* ===================================
   Input Group Styles
   =================================== */
.pricing-input-group-addon,
.input-group-addon {
    font-weight: 600;
    background-color: #f8f9fa;
    color: #495057;
    border-color: #ced4da;
    min-width: 70px;
    text-align: left;
}

.form-control {
    box-shadow: none;
    border-color: #ced4da;
    height: 38px;
}

/* ===================================
   Value Display & Controls
   =================================== */
.pricing-value-display {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-right: none;
    padding: 8px 12px;
    border-radius: 4px 0 0 4px;
    font-weight: 500;
    color: #495057;
    height: 38px;
    display: flex;
    align-items: center;
}

.pricing-value-control {
    display: flex;
    align-items: stretch;
}

.pricing-value-control .form-control {
    border-right: 0;
    text-align: center;
    font-weight: 500;
    background-color: #f8f9fa;
}

.pricing-value-control .btn {
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #ced4da;
    background-color: #f8f9fa;
    font-weight: 600;
    height: 38px;
}

.pricing-value-control .pricing-value-increase {
    border-radius: 0 4px 4px 0;
}

.pricing-value-control .pricing-value-decrease {
    border-radius: 0;
    border-right: none;
}

.pricing-value-control .pricing-value-increase:hover,
.pricing-value-control .pricing-value-decrease:hover {
    background-color: #e9ecef;
}

/* ===================================
   Button Styles
   =================================== */
.btn {
    border-radius: 3px;
}

.btn-block {
    padding: 8px 12px;
}

.btn-primary {
    background-image: none;
    background-color: #3498db;
    border-color: #2980b9;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #2980b9;
    border-color: #2473a6;
}

.btn-default {
    background-image: none;
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
}

.btn-default:hover,
.btn-default:focus {
    background-color: #e9ecef;
    border-color: #b1bbc4;
}

/* ===================================
   Help Block
   =================================== */
.help-block {
    color: #737373;
    font-style: italic;
    margin-top: 8px;
}

/* ===================================
   Modal Styles
   =================================== */
.pricing-modal-content {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.pricing-modal-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.pricing-modal-header .modal-title {
    font-weight: 600;
    color: #3a3a3a;
}

.pricing-modal-body {
    padding: 20px;
}

.pricing-modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
}

/* ===================================
   Most Preferred Badge
   =================================== */
.most-preferred-wrapper {
    position: relative;
    margin-top: 5px;
    width: 100%;
}

/* ===================================
   Discount Badge
   =================================== */
.discount-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.discount-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.discount-badge-icon {
    font-size: 20px;
    margin-right: 8px;
    animation: rotate-tag 2s ease-in-out infinite;
}

.discount-badge-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discount-badge-value {
    font-size: 32px;
    font-weight: 900;
    margin: 5px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.discount-badge-dates {
    font-size: 13px;
    opacity: 0.95;
    margin-top: 8px;
    font-weight: 500;
}

.discount-badge-dates i {
    margin-right: 5px;
}

/* Animasyonlar */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
        transform: scale(1.02);
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

@keyframes rotate-tag {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Inactive discount (tarih dışı) */
.discount-badge.inactive {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 4px 15px rgba(127, 140, 141, 0.3);
    opacity: 0.7;
}

.discount-badge.inactive::before {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .discount-badge {
        padding: 10px 15px;
    }

    .discount-badge-title {
        font-size: 16px;
    }

    .discount-badge-value {
        font-size: 28px;
    }

    .discount-badge-dates {
        font-size: 12px;
    }
}

.small-company-branch-element {
    min-width: 50px;
}

.price-text-appearance {
    color: #eb9316;
    font-weight: bold;
    font-size: 18px;
}

.time-period-text-appearance {
    font-weight: 400;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 20px;
}