/* Subscription-specific styles */

/* Subscription Plans */
.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.plan-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.plan-card.recommended {
    border-color: #3498db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.plan-header {
    margin-bottom: 20px;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.plan-billing {
    font-size: 0.875rem;
    color: #64748b;
}

.plan-features {
    flex: 1;
    margin: 24px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.95rem;
}

.feature-list li i {
    color: #22c55e;
    font-size: 0.875rem;
}

.feature-list li.unavailable {
    color: #94a3b8;
}

.feature-list li.unavailable i {
    color: #cbd5e1;
}

.plan-action {
    margin-top: auto;
}

.plan-button {
    width: 100%;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-button.primary {
    background-color: #3498db;
    color: white;
    border: none;
}

.plan-button.primary:hover {
    background-color: #2980b9;
}

.plan-button.secondary {
    background-color: white;
    color: #3498db;
    border: 1px solid #3498db;
}

.plan-button.secondary:hover {
    background-color: #f8fafc;
}

/* Add-ons Section */
.add-ons-section {
    margin-top: 48px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
}

.add-ons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.add-on-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.add-on-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.add-on-info {
    flex: 1;
}

.add-on-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
}

.add-on-price {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.add-on-billing {
    font-size: 0.875rem;
    color: #64748b;
}

.add-on-toggle {
    margin-left: 16px;
}

.add-on-description {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Current Plan Section */
.current-plan {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 48px;
}

.current-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.plan-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.plan-status {
    font-size: 0.875rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.plan-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
}

/* Subscription Groups */
.subscription-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
}

.group-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.group-header {
    background-color: #f8fafc;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-logo {
    height: 24px;
    width: auto;
}

.group-price {
    font-size: 1.1rem;
    font-weight: 500;
    color: #3498db;
}

.group-items {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subscription-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    background-color: white;
}

.subscription-item:hover:not(.ad-hoc) {
    border-color: #3498db;
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.subscription-item.selected {
    border-color: #3498db;
    background-color: #f0f9ff;
}

.subscription-item:not(.selected):not(:hover):not(.ad-hoc) {
    border-color: #e2e8f0;
}

/* Ad-hoc items */
.subscription-item.ad-hoc {
    border: 1px solid #f6e05e;
    background-color: #fffbeb;
    cursor: default;
}

.subscription-item.ad-hoc:hover {
    border-color: #f6e05e;
    transform: none;
    box-shadow: none;
    background-color: #fffbeb;
}

.subscription-item.ad-hoc .item-checkbox {
    display: none;
}

.subscription-item input[type="checkbox"],
.subscription-item input[type="radio"] {
    cursor: pointer;
}

/* Disabled state */
.subscription-groups.disabled .subscription-item:not(.ad-hoc) {
    cursor: not-allowed;
    opacity: 0.7;
    background-color: #f8fafc;
    transform: none;
    box-shadow: none;
}

.subscription-groups.disabled .subscription-item:hover:not(.ad-hoc) {
    border-color: #e2e8f0;
    transform: none;
    box-shadow: none;
}

.item-checkbox {
    margin-top: 4px;
}

.item-content {
    flex: 1;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
}

.item-price {
    font-size: 1rem;
    font-weight: 600;
    color: #3498db;
}

.item-price .period {
    font-size: 0.875rem;
    font-weight: normal;
    color: #64748b;
}

.item-description {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.5;
}

.item-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.item-features li i {
    color: #3498db;
    font-size: 0.8rem;
}

.price-note {
    font-size: 0.875rem;
    color: #64748b;
    text-align: right;
    padding: 12px 24px;
    font-style: italic;
}

/* Info Panel Actions */
.action-buttons {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
}

.action-btn {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: white;
    color: #475569;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #3498db;
}

.action-btn i {
    font-size: 0.9rem;
    color: #64748b;
}

.action-btn:hover i {
    color: #3498db;
}

.header-link {
    font-size: 0.875rem;
    color: #3498db;
    text-decoration: none;
    margin-left: auto;
}

.header-link:hover {
    text-decoration: underline;
}

.panel-title {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    padding-bottom: 0;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Subscription Sections */
.subscription-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    padding-bottom: 0;
}

.section-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Disabled state */
.subscription-groups.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.subscription-groups.disabled .subscription-item {
    background-color: #f8fafc;
}

/* Radio buttons */
input[type="radio"].item-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 4px;
}

/* App Layout */
.app-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.app-info-bar {
    position: sticky;
    top: 84px; /* Account for header height (64px) + spacing (20px) */
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 24px;
} 