/* Plans Specific Styles */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --success-color: #4bb543;
    --error-color: #ff3333;
    --warning-color: #ffcc00;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.plans-footer {
    flex-shrink: 0;
}
/* Plans Container */
.plans-container {
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Plans Hero */
.plans-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
}

.plans-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
}

.plans-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: white !important;
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(67, 97, 238, 0.2);
    z-index: -1;
}

/* Current Flows Section */
.current-flows {
    padding: 80px 20px;
    background-color: white;
}

#user-flows {
    min-height: 200px;
    position: relative;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.flows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.flow-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.flow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.flow-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.flow-card p {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.flow-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.flow-link:hover {
    text-decoration: underline;
}

.flow-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 6px;
}

/*auth-buttons*/
.auth-buttons, .user-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}
.user-menu {
    display: none; /* Hidden by default, shown for logged-in users */
}
.nav-links li {
    display: flex;
    align-items: center;
}

/* Available Plans Section */
.available-plans {
    padding: 80px 20px;
    background-color: #f5f7ff;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.recommended {
    border: 2px solid var(--primary-color);
}

.plan-card.enterprise {
    border: 2px solid var(--accent-color);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.plan-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.plan-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.recommended .plan-icon {
    color: var(--primary-color);
}

.enterprise .plan-icon {
    color: var(--accent-color);
}

.recommended-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--dark-color);
}

.plan-price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--gray-color);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
}

.plan-features li i {
    width: 20px;
    text-align: center;
}

.plan-features li i.fa-check {
    color: var(--success-color);
}

.plan-features li i.fa-times {
    color: var(--error-color);
}

.feature-disabled {
    color: var(--gray-color);
    opacity: 0.7;
}

/* Flow Management Section */
.flow-management {
    padding: 80px 20px;
    background-color: white;
}

.flow-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

#flow-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.input-with-icon {
    position: relative;
    margin-bottom: 20px;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Pricing Tabs */
.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-tab {
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-color);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.pricing-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.pricing-tab:hover:not(.active) {
    color: var(--dark-color);
}

.pricing-content {
    display: none;
}

.pricing-content.active {
    display: block;
}

/* Feature Comparison Tables */
.feature-category {
    margin-bottom: 40px;
}

.feature-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.feature-table th, 
.feature-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--light-gray);
    color: var(--dark-color);
}

.feature-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.feature-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.feature-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.feature-table i.fa-check {
    color: var(--success-color);
    font-size: 1.2rem;
}

.feature-table i.fa-times {
    color: var(--error-color);
    font-size: 1.2rem;
}

.plan-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

.badge-silver {
    background-color: #c0c0c0;
    color: white;
}

.badge-gold {
    background-color: #ffd700;
    color: white;
}

.badge-platinum {
    background-color: #e5e4e2;
    color: var(--dark-color);
}

.relative-value {
    font-style: italic;
    color: var(--gray-color);
    margin-top: 5px;
    font-size: 0.9rem;
}

/* CTA Section */
.plans-cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.plans-cta h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: white;
}

.plans-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    color: white !important;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Footer */
.plans-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.legal-links a:hover {
    color: white;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    max-width: 500px;
    width: 90%;
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--dark-color);
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 4rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.success-modal {
    text-align: center;
    padding: 50px 40px;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-modal h2 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.success-modal p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--dark-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .plans-hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-tabs {
        flex-wrap: wrap;
    }
    
    .pricing-tab {
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .plans-hero {
        padding: 80px 0;
    }
    
    .plans-hero h1 {
        font-size: 2.2rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 40px auto;
    }
    
    .feature-table {
        font-size: 0.9rem;
    }
    
    .flow-controls {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .plans-hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
    
    .pricing-tab {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .feature-table th, 
    .feature-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* Status Badges */
.status-badge {
    font-weight: 600;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
    min-width: 90px;
}

.status-badge.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.status-badge.expiring-soon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.status-badge.expired {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* Service Cards - Enhanced Styling */
.current-services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #e2e8f0 100%);
}

.current-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card .plan-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}

.service-card .plan-header .plan-icon {
    font-size: 1.8rem;
    color: #ffffff;
    background: linear-gradient(135deg, #4361ee 0%, #3a54d1 100%);
    padding: 14px;
    border-radius: 12px;
    margin-right: 16px;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

.service-card .plan-header h3 {
    font-size: 1.5rem;
    color: #1a202c;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.service-card .plan-info {
    margin-bottom: 24px;
    background: #f8fafc;
    padding: 18px;
    border-radius: 12px;
    flex-grow: 1;
}

.service-card .plan-info p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.5;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
}

.service-card .plan-info p:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.service-card .plan-info p strong {
    font-weight: 600;
    color: #1a202c;
    min-width: 100px;
}

/* No Services Section Enhancement */
.no-services {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.no-services h3 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 20px;
    font-weight: 700;
}

.no-services p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.plus-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4361ee 0%, #3a54d1 100%);
    color: white;
    border-radius: 50%;
    font-size: 2.2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.plus-button:hover {
    background: linear-gradient(135deg, #3a54d1 0%, #2d42b8 100%);
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(67, 97, 238, 0.4);
}

.service-card .plan-info .plan-name {
    font-weight: 600;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
    min-width: 90px;
}

.service-card .plan-info .plan-name.silver {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.3);
}

.service-card .plan-info .plan-name.gold {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    box-shadow: 0 2px 6px rgba(202, 138, 4, 0.3);
}

.service-card .parameters-section {
    margin-bottom: 16px;
}

.service-card .edit-parameters-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.service-card .edit-parameters-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
}

.service-card .edit-parameters-btn i {
    margin-right: 8px;
}

.service-card .service-actions {
    display: flex;
    justify-content: center;
}

.service-card .change-plan-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #4361ee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #4361ee;
}

.service-card .change-plan-btn:hover {
    background: rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .current-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card .plan-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .service-card .plan-header {
        flex-direction: column;
        text-align: center;
    }
    
    .service-card .plan-header .plan-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .service-card .plan-info p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-card .plan-info p strong {
        margin-bottom: 4px;
    }
}

@media (max-width: 576px) {
    .service-card .plan-info p {
        font-size: 1rem;
    }
    
    .service-card .plan-info p strong {
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .feature-table th, 
    .feature-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* Dialog Styles - Enhanced */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.dialog-overlay.active {
    visibility: visible;
    opacity: 1;
}

.dialog {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.dialog-overlay.active .dialog {
    transform: translateY(0);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.dialog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.dialog-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dialog-close:hover {
    color: #ef4444;
    background-color: #f3f4f6;
}

.dialog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.dialog-footer {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Form Styles - Enhanced */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: #f9fafb;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-input::placeholder {
    color: #9ca3af;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4b5563;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

#save-parameters-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

#save-parameters-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

#save-parameters-btn i {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .dialog {
        padding: 20px;
        width: 95%;
    }
    
    .dialog-title {
        font-size: 1.3rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr 1fr;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: white;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 350px;
    min-width: 250px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.toast-content i {
    margin-right: 12px;
    font-size: 18px;
}

.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-success i {
    color: #4CAF50;
}

.toast-error {
    border-left: 4px solid #F44336;
}

.toast-error i {
    color: #F44336;
}

/* Form Improvements */
.form-group {
    margin-bottom: 16px;
    width: 100%;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input {
    margin-right: 8px;
}

/* Save Button Improvements */
#save-parameters-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

#save-parameters-btn:hover {
    background-color: #1976D2;
}

#save-parameters-btn:disabled {
    background-color: #90CAF9;
    cursor: not-allowed;
}

#save-parameters-btn i {
    margin-right: 8px;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .dialog {
        width: 90%;
        max-height: 80vh;
    }
    
    .checkbox-group {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .dialog {
        padding: 20px;
        width: 95%;
    }
    
    .dialog-title {
        font-size: 1.3rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr 1fr;
    }
}