/* SQL Dump Splitter Frontend Styles */

.sds-user-plan {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sds-user-plan h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.4em;
}

.sds-plan-description {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.sds-plan-limits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.sds-limit-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sds-limit-label {
    font-weight: 600;
    color: #333;
}

.sds-limit-value {
    font-weight: bold;
    color: #0073aa;
    font-size: 1.1em;
}

.sds-upgrade-notice {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.sds-upgrade-notice p {
    margin: 0;
    color: #0066cc;
}

.sds-upgrade-notice a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.sds-upgrade-notice a:hover {
    text-decoration: underline;
}

.sds-login-required {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
}

/* User Limits Grid Layout */
.sds-user-limits {
    margin: 20px 0;
}

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

.sds-limit-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.sds-limit-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sds-limit-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.sds-limit-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.sds-limit-info p {
    margin: 0;
    font-size: 1.4em;
    font-weight: bold;
    color: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sds-plan-limits {
        grid-template-columns: 1fr;
    }
    
    .sds-limits-grid {
        grid-template-columns: 1fr;
    }
    
    .sds-limit-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .sds-user-plan {
        padding: 15px;
    }
}

/* Pricing Modal Styles */
.sds-pricing-modal-content {
    max-width: 1400px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Ensure pricing modal uses proper show class */
#sds-pricing-modal.sds-modal {
    display: none;
}

#sds-pricing-modal.sds-modal.show {
    display: flex !important;
}

.sds-pricing-message {
    margin-bottom: 20px;
    text-align: center;
}

.sds-pricing-message p {
    margin: 10px 0;
}

.sds-error-message {
    color: #dc3232;
    font-weight: bold;
    background: #ffeaea;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #dc3232;
}

.sds-pricing-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.sds-pricing-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.sds-pricing-plan, .sds-pricing-plan-current {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.sds-pricing-plan:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sds-pricing-plan-current {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.sds-pricing-plan-current::before {
    content: 'Current Plan';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #0073aa;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.sds-pricing-header {
    margin-bottom: 20px;
}

.sds-pricing-header h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.4em;
    font-weight: 600;
}

.sds-pricing-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.sds-pricing-features {
    margin-bottom: 20px;
}

.sds-pricing-feature {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sds-pricing-feature:last-child {
    border-bottom: none;
}

.sds-feature-label {
    display: block;
    margin-bottom: 4px;
    color: #666;
    font-weight: 500;
}

.sds-feature-value {
    display: block;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
}

.sds-pricing-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
    font-style: italic;
}

.sds-pricing-actions {
    margin-top: 20px;
}

.sds-pricing-btn {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sds-pricing-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sds-pricing-free {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
}

.sds-pricing-unavailable {
    display: inline-block;
    padding: 8px 16px;
    background: #ffeaea;
    color: #dc3232;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
}

.sds-pricing-footer {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #e1e5e9;
    padding-top: 20px;
}

.sds-pricing-note {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.sds-pricing-footer .sds-btn {
    margin-top: 10px;
}

/* Responsive Pricing Modal */
@media (max-width: 1200px) {
    .sds-pricing-modal-content {
        max-width: 1000px;
        width: 95%;
    }

    .sds-pricing-table {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .sds-pricing-modal-content {
        width: 98%;
        max-height: 95vh;
        margin: 10px;
    }

    .sds-pricing-table {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sds-pricing-plan, .sds-pricing-plan-current {
        padding: 15px;
    }

    .sds-pricing-header h4 {
        font-size: 1.2em;
    }

    .sds-pricing-price {
        font-size: 1.5em;
    }

    .sds-feature-label, .sds-feature-value {
        font-size: 0.9em;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .sds-user-plan {
        background: #2c2c2c;
        border-color: #444;
        color: #e0e0e0;
    }

    .sds-user-plan h3 {
        color: #e0e0e0;
    }

    .sds-limit-item {
        background: #3c3c3c;
        color: #e0e0e0;
    }

    .sds-limit-card {
        background: #3c3c3c;
        border-color: #555;
        color: #e0e0e0;
    }

    .sds-limit-info h4 {
        color: #e0e0e0;
    }

    /* Pricing Modal Dark Mode */
    .sds-pricing-plan, .sds-pricing-plan-current {
        background: #3c3c3c;
        border-color: #555;
        color: #e0e0e0;
    }

    .sds-pricing-plan-current {
        border-color: #0073aa;
    }

    .sds-pricing-header h4 {
        color: #e0e0e0;
    }

    .sds-feature-label {
        color: #ccc;
    }

    .sds-feature-value {
        color: #e0e0e0;
    }

    .sds-pricing-description {
        color: #ccc;
    }

    .sds-pricing-feature {
        border-bottom-color: #555;
    }

    .sds-pricing-free {
        background: #555;
        color: #ccc;
    }

    .sds-pricing-unavailable {
        background: #4a2c2c;
        color: #ffaaaa;
    }

    .sds-pricing-footer {
        border-top-color: #555;
    }

    .sds-pricing-note {
        color: #ccc;
    }
}