/* Package Comparison Library Styles */
.package-comparison-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 15px;
    width: 300px;
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-comparison-box.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.package-comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.package-comparison-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.package-comparison-title i {
    color: #ef7d00;
}

.package-comparison-count {
    background: #ef7d00;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.package-comparison-actions {
    display: flex;
    gap: 8px;
}

.package-comparison-button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.package-comparison-compare {
    background: #ef7d00;
    color: white;
    border: none;
}

.package-comparison-compare:hover {
    background: #d66e00;
    transform: translateY(-2px);
}

.package-comparison-clear {
    background: #fff1f1;
    color: #dc3545;
    border: 1px solid #ffd7d7;
}

.package-comparison-clear:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.package-comparison-packages {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.package-comparison-packages::-webkit-scrollbar {
    width: 4px;
}

.package-comparison-packages::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 2px;
}

.package-comparison-packages::-webkit-scrollbar-thumb {
    background: #ef7d00;
    border-radius: 2px;
}

.package-comparison-package {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.package-comparison-package:hover {
    background: #f0f0f0;
    transform: translateX(2px);
}

.package-comparison-package-info {
    flex: 1;
}

.package-comparison-package-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.package-comparison-package-price {
    font-size: 13px;
    color: #ef7d00;
    font-weight: 600;
}

.package-comparison-package-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff1f1;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-comparison-package-remove:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

/* Comparison Modal Styles */
.package-comparison-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.package-comparison-content {
    background-color: white;
    margin: 30px auto;
    padding: 0;
    width: 95%;
    max-width: 1400px;
    border-radius: 8px;
    position: relative;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.4s ease-out;
    overflow: hidden;
}

.package-comparison-header {
    position: sticky;
    top: 0;
    background-color: white;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    z-index: 20;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-comparison-title {
    animation: fadeInRight 0.5s ease-out;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-comparison-table-wrapper {
    animation: fadeInUp 0.6s ease-out;
    flex: 1;
    overflow-y: auto;
    padding: 0 30px 30px 30px;
    margin-top: 20px;
    scrollbar-width: thin;
    scrollbar-color: #dc3545 #f5f5f5;
}

.package-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.package-comparison-table th,
.package-comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.package-comparison-table .feature-name {
    font-weight: 700;
    color: #dc3545;
    min-width: 200px;
    font-size: 16px;
    background-color: #fff;
    border-right: 2px solid #f0f0f0;
    position: sticky;
    left: 0;
    z-index: 11;
}

.package-comparison-table .package-header {
    min-width: 250px;
    background-color: #fff;
    padding: 25px;
    text-align: center;
    border-left: none;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.package-comparison-table .package-price {
    animation: scaleIn 0.5s ease-out;
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
    margin: 15px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.package-comparison-table .feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    transition: all 0.3s ease;
}

.package-comparison-table .feature-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .package-comparison-box {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    .package-comparison-content {
        padding: 20px;
        margin: 15px;
        width: auto;
    }

    .package-comparison-header {
        padding: 15px 20px;
        margin: -20px -20px 20px -20px;
    }

    .package-comparison-title {
        font-size: 22px;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 