/* ============================================
   EVENT CREATE - AGENDRIX STYLE
   Complete Custom Styling with Toast Notifications
   ============================================ */

/* ====== CSS VARIABLES ====== */
:root {
    /* Primary Colors */
    --ec-primary: 13, 43, 53;
    --ec-primary-hover: 20, 60, 70;
    --ec-primary-light: 229, 237, 239;
    /* Gold Accent */
    --ec-gold: 212, 175, 55;
    --ec-gold-hover: 200, 160, 45;
    --ec-gold-light: 254, 251, 235;
    /* Status Colors */
    --ec-success: 42, 157, 143;
    --ec-success-light: 209, 250, 229;
    --ec-warning: 245, 158, 11;
    --ec-warning-light: 254, 243, 199;
    --ec-danger: 239, 68, 68;
    --ec-danger-light: 254, 226, 226;
    --ec-info: 59, 130, 246;
    --ec-info-light: 219, 234, 254;
    /* Neutral Colors */
    --ec-white: 255, 255, 255;
    --ec-gray-50: 248, 249, 250;
    --ec-gray-100: 243, 244, 246;
    --ec-gray-200: 229, 231, 235;
    --ec-gray-300: 209, 213, 219;
    --ec-gray-400: 156, 163, 175;
    --ec-gray-500: 107, 114, 128;
    --ec-gray-600: 75, 85, 99;
    --ec-gray-700: 55, 65, 81;
    --ec-gray-800: 31, 41, 55;
    --ec-gray-900: 17, 24, 39;
    /* Spacing */
    --ec-space-1: 0.25rem;
    --ec-space-2: 0.5rem;
    --ec-space-3: 0.75rem;
    --ec-space-4: 1rem;
    --ec-space-5: 1.25rem;
    --ec-space-6: 1.5rem;
    --ec-space-8: 2rem;
    /* Border & Shadow */
    --ec-radius: 0.5rem;
    --ec-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ec-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --ec-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --ec-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    /* Transitions */
    --ec-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== TOAST NOTIFICATIONS ====== */
.ec-toast-container {
    position: fixed;
    top: var(--ec-space-6);
    right: var(--ec-space-6);
    min-width: 400px;
    max-width: 500px;
    background: rgb(var(--ec-white));
    border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow-xl);
    display: flex;
    align-items: flex-start;
    gap: var(--ec-space-4);
    padding: var(--ec-space-5);
    z-index: 9999;
    animation: ec-toast-slide-in 0.3s ease-out;
    border-left: 4px solid;
}

@keyframes ec-toast-slide-in {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ec-toast-icon {
    flex-shrink: 0;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.ec-toast-success .ec-toast-icon {
    color: rgb(var(--ec-success));
    background: rgb(var(--ec-success-light));
    border-left-color: rgb(var(--ec-success));
}

.ec-toast-error .ec-toast-icon {
    color: rgb(var(--ec-danger));
    background: rgb(var(--ec-danger-light));
    border-left-color: rgb(var(--ec-danger));
}

.ec-toast-warning .ec-toast-icon {
    color: rgb(var(--ec-warning));
    background: rgb(var(--ec-warning-light));
    border-left-color: rgb(var(--ec-warning));
}

.ec-toast-info .ec-toast-icon {
    color: rgb(var(--ec-info));
    background: rgb(var(--ec-info-light));
    border-left-color: rgb(var(--ec-info));
}

.ec-toast-content {
    flex: 1;
}

.ec-toast-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgb(var(--ec-gray-900));
    margin-bottom: var(--ec-space-1);
}

.ec-toast-message {
    font-size: 0.875rem;
    color: rgb(var(--ec-gray-700));
    line-height: 1.5;
    margin-bottom: var(--ec-space-2);
}

.ec-toast-list {
    margin: var(--ec-space-2) 0 0 0;
    padding-left: var(--ec-space-5);
    list-style-type: disc;
}

    .ec-toast-list li {
        font-size: 0.813rem;
        color: rgb(var(--ec-gray-700));
        line-height: 1.5;
        margin-bottom: var(--ec-space-1);
    }

        .ec-toast-list li:last-child {
            margin-bottom: 0;
        }

.ec-toast-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgb(var(--ec-gray-600));
    cursor: pointer;
    border-radius: var(--ec-radius);
    transition: var(--ec-transition);
    font-size: 1.125rem;
}

    .ec-toast-close:hover {
        background: rgb(var(--ec-gray-100));
        color: rgb(var(--ec-gray-900));
    }

/* ====== MAIN CONTAINER ====== */
.ec-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--ec-space-4);
    animation: ec-fadeIn 0.3s ease-out;
}

@keyframes ec-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== BREADCRUMB NAVIGATION ====== */
.ec-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--ec-space-2);
    margin-bottom: var(--ec-space-4);
    font-size: 0.875rem;
    padding: var(--ec-space-2) 0;
    animation: ec-slideInDown 0.3s ease-out;
}

@keyframes ec-slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ec-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--ec-space-2);
    color: rgb(var(--ec-gray-600));
    text-decoration: none;
    transition: color var(--ec-transition);
    padding: var(--ec-space-1) var(--ec-space-2);
    border-radius: 0.5rem;
}

a.ec-breadcrumb-item:hover {
    color: rgb(var(--ec-primary));
    background: rgb(var(--ec-gray-100));
}

.ec-breadcrumb-current {
    color: rgb(var(--ec-gray-900));
    font-weight: 500;
}

.ec-breadcrumb-separator {
    color: rgb(var(--ec-gray-600));
    font-size: 0.75rem;
}

/* ====== HEADER ====== */
.ec-header {
    background: rgb(var(--ec-white));
    border: 1px solid rgb(var(--ec-gray-200));
    border-radius: 0.75rem;
    box-shadow: var(--ec-shadow-sm);
    margin-bottom: var(--ec-space-4);
    padding: var(--ec-space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ec-space-4);
    animation: ec-slideInDown 0.4s ease-out;
    flex-wrap: wrap;
}

.ec-header-left {
    display: flex;
    align-items: center;
    gap: var(--ec-space-3);
    flex: 1;
    min-width: 0;
}

.ec-header-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(var(--ec-primary)), rgb(var(--ec-primary-hover)));
    border-radius: 0.75rem;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--ec-shadow-md);
}

.ec-header-text {
    min-width: 0;
}

.ec-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(var(--ec-gray-900));
    margin: 0 0 0.125rem 0;
    letter-spacing: -0.02em;
}

.ec-subtitle {
    font-size: 0.875rem;
    color: rgb(var(--ec-gray-600));
    margin: 0;
    line-height: 1.4;
}

.ec-header-actions {
    display: flex;
    gap: var(--ec-space-2);
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

/* Legacy styles for compatibility */
.ec-page-title {
    display: flex;
    align-items: center;
    gap: var(--ec-space-3);
    font-size: 2rem;
    font-weight: 700;
    color: rgb(var(--ec-gray-900));
    margin: 0 0 var(--ec-space-3) 0;
}

    .ec-page-title i {
        color: rgb(var(--ec-primary));
        font-size: 1.75rem;
    }

.ec-info-row {
    display: flex;
    align-items: center;
    gap: var(--ec-space-4);
    flex-wrap: wrap;
}

.ec-number-display {
    display: inline-flex;
    align-items: center;
    padding: var(--ec-space-2) var(--ec-space-4);
    background: linear-gradient(135deg, rgb(var(--ec-gold-light)), rgb(var(--ec-white)));
    border: 2px solid rgb(var(--ec-gold));
    border-radius: var(--ec-radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(var(--ec-gray-900));
}

.ec-payment-alert {
    display: inline-flex;
    align-items: center;
    gap: var(--ec-space-2);
    padding: var(--ec-space-2) var(--ec-space-4);
    background: rgb(var(--ec-warning-light));
    border: 1px solid rgb(var(--ec-warning));
    border-radius: var(--ec-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(var(--ec-warning));
}

    .ec-payment-alert i {
        font-size: 1rem;
    }

.ec-btn-download {
    display: inline-flex;
    align-items: center;
    gap: var(--ec-space-2);
    padding: var(--ec-space-2) var(--ec-space-4);
    background: linear-gradient(135deg, rgb(var(--ec-primary)), rgb(var(--ec-primary-hover)));
    color: rgb(var(--ec-white));
    border: none;
    border-radius: var(--ec-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ec-transition);
    box-shadow: var(--ec-shadow-sm);
}

    .ec-btn-download:hover {
        background: linear-gradient(135deg, rgb(var(--ec-primary-hover)), rgb(var(--ec-primary)));
        transform: translateY(-2px);
        box-shadow: var(--ec-shadow-md);
    }

    .ec-btn-download i {
        font-size: 1rem;
    }

/* ====== EVENT STATUS TOOLBAR ====== */
.ec-status-toolbar {
    background: rgb(var(--ec-white));
    border: 1px solid rgb(var(--ec-gray-200));
    border-radius: 0.75rem;
    box-shadow: var(--ec-shadow-sm);
    margin-bottom: var(--ec-space-4);
    padding: var(--ec-space-4);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--ec-space-4);
    animation: ec-slideInDown 0.5s ease-out;
}

.ec-status-item {
    display: flex;
    align-items: center;
    gap: var(--ec-space-3);
    padding: var(--ec-space-3);
    background: rgb(var(--ec-gray-50));
    border: 1px solid rgb(var(--ec-gray-200));
    border-radius: var(--ec-radius);
    transition: var(--ec-transition);
}

    .ec-status-item:hover {
        background: rgb(var(--ec-white));
        border-color: rgb(var(--ec-gray-300));
        box-shadow: var(--ec-shadow-sm);
    }

.ec-status-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    flex-shrink: 0;
    background: rgb(var(--ec-white));
    border: 1px solid rgb(var(--ec-gray-200));
    color: rgb(var(--ec-gray-600));
    font-size: 1.125rem;
}

.ec-status-stage .ec-status-icon {
    background: linear-gradient(135deg, rgba(var(--ec-primary), 0.1), rgba(var(--ec-primary), 0.05));
    border-color: rgba(var(--ec-primary), 0.3);
    color: rgb(var(--ec-primary));
}

.ec-status-quote .ec-status-icon {
    background: linear-gradient(135deg, rgba(var(--ec-gold), 0.15), rgba(var(--ec-gold), 0.05));
    border-color: rgba(var(--ec-gold), 0.3);
    color: rgb(var(--ec-gold));
}

.ec-status-checklist .ec-status-icon {
    background: linear-gradient(135deg, rgba(var(--ec-info), 0.1), rgba(var(--ec-info), 0.05));
    border-color: rgba(var(--ec-info), 0.3);
    color: rgb(var(--ec-info));
}

.ec-status-payment .ec-status-icon {
    background: linear-gradient(135deg, rgba(var(--ec-gray-600), 0.1), rgba(var(--ec-gray-600), 0.05));
    border-color: rgba(var(--ec-gray-600), 0.3);
    color: rgb(var(--ec-gray-600));
}

.ec-status-success .ec-status-icon {
    background: linear-gradient(135deg, rgba(var(--ec-success), 0.15), rgba(var(--ec-success), 0.05));
    border-color: rgba(var(--ec-success), 0.4);
    color: rgb(var(--ec-success));
}

.ec-status-warning .ec-status-icon {
    background: linear-gradient(135deg, rgba(var(--ec-warning), 0.15), rgba(var(--ec-warning), 0.05));
    border-color: rgba(var(--ec-warning), 0.4);
    color: rgb(var(--ec-warning));
}

.ec-status-content {
    flex: 1;
    min-width: 0;
}

.ec-status-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(var(--ec-gray-700));
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
}

.ec-status-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(var(--ec-gray-900));
    line-height: 1.4;
}

/* ====== PROGRESS CONTAINER ====== */
.ec-progress-container {
    background: rgb(var(--ec-white));
    border: 1px solid rgb(var(--ec-gray-200));
    border-radius: 0.5rem;
    padding: var(--ec-space-4);
    margin-bottom: var(--ec-space-5);
    box-shadow: var(--ec-shadow-sm);
    position: relative;
}

    /* Subtle decorative accent */
    .ec-progress-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, rgb(var(--ec-primary)), rgb(var(--ec-gold)), rgb(var(--ec-success)));
    }

/* ====== PROGRESS BAR ====== */
.ec-progress-bar {
    height: 6px;
    background: rgb(var(--ec-gray-200));
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--ec-space-4);
    position: relative;
}

.ec-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(var(--ec-success)), rgb(var(--ec-gold)));
    border-radius: 999px;
    transition: width 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

    .ec-progress-fill::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: ec-shimmer 2s infinite;
    }

@keyframes ec-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ====== PROGRESS STEPS ====== */
.ec-progress-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--ec-space-2);
}

.ec-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ec-space-2);
    cursor: pointer;
    transition: all var(--ec-transition);
    padding: var(--ec-space-2);
    border-radius: 0.5rem;
    position: relative;
}

    .ec-progress-step:hover:not(.disabled) {
        background: rgb(var(--ec-gray-50));
    }

    .ec-progress-step.disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

.ec-step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgb(var(--ec-gray-100));
    border: 2px solid rgb(var(--ec-gray-200));
    color: rgb(var(--ec-gray-700));
    font-size: 0.938rem;
    font-weight: 600;
    transition: all var(--ec-transition);
    flex-shrink: 0;
}

.ec-progress-step.active .ec-step-circle {
    background: linear-gradient(135deg, rgb(var(--ec-gold)), rgb(var(--ec-gold-hover)));
    border-color: rgb(var(--ec-gold));
    color: rgb(var(--ec-gray-900));
    box-shadow: 0 0 0 3px rgba(var(--ec-gold), 0.15);
}

.ec-progress-step.completed .ec-step-circle {
    background: rgb(var(--ec-success));
    border-color: rgb(var(--ec-success));
    color: rgb(var(--ec-white));
}

.ec-progress-step.has-alert .ec-step-circle {
    background: rgb(var(--ec-warning));
    border-color: rgb(var(--ec-warning));
    color: rgb(var(--ec-white));
}

.ec-progress-step.fully-paid .ec-step-circle {
    background: rgb(var(--ec-success));
    border-color: rgb(var(--ec-success));
    color: rgb(var(--ec-white));
}

.ec-step-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(var(--ec-gray-600));
    text-align: center;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ec-space-1);
}

.ec-progress-step.active .ec-step-title {
    color: rgb(var(--ec-gray-900));
    font-weight: 600;
}

.ec-progress-step.completed .ec-step-title {
    color: rgb(var(--ec-gray-700));
    font-weight: 500;
}

.ec-payment-due-badge {
    display: block;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgb(var(--ec-danger));
    color: rgb(var(--ec-white));
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 0.25rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* ====== MAIN CONTENT ====== */
.ec-content {
    background: rgb(var(--ec-white));
    border: 1px solid rgb(var(--ec-gray-200));
    border-radius: var(--ec-radius);
    padding: var(--ec-space-6);
    box-shadow: var(--ec-shadow-md);
    min-height: 400px;
}

.ec-step-content {
    animation: ec-slideIn 0.3s ease-out;
}

@keyframes ec-slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====== LOADING STATE ====== */
.ec-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--ec-space-4);
    padding: var(--ec-space-8);
}

.ec-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgb(var(--ec-gray-200));
    border-top-color: rgb(var(--ec-gold));
    border-radius: 50%;
    animation: ec-spin 0.8s linear infinite;
}

@keyframes ec-spin {
    to {
        transform: rotate(360deg);
    }
}

.ec-loading-container p {
    font-size: 0.875rem;
    color: rgb(var(--ec-gray-600));
    margin: 0;
}

/* ============================================================================
   PROFESSIONAL FOOTER - NEXT LEVEL DESIGN
   ============================================================================ */

.ec-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ec-space-3);
    padding: var(--ec-space-3) var(--ec-space-4);
    margin-top: var(--ec-space-4);
    background: linear-gradient(180deg, rgb(var(--ec-white)) 0%, rgb(var(--ec-gray-50)) 100%);
    border-top: 2px solid rgb(var(--ec-primary));
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05), 0 -2px 4px -1px rgba(0, 0, 0, 0.03);
    position: sticky;
    bottom: 0;
    z-index: 100;
    border-radius: var(--ec-radius) var(--ec-radius) 0 0;
}

.ec-footer-left,
.ec-footer-center,
.ec-footer-right {
    display: flex;
    align-items: center;
    gap: var(--ec-space-2);
}

.ec-footer-left {
    flex: 0 0 auto;
}

.ec-footer-center {
    flex: 1;
    justify-content: center;
}

.ec-footer-right {
    flex: 0 0 auto;
}

/* ====== FOOTER BUTTONS - PROFESSIONAL STYLING ====== */
.ec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ec-space-2);
    padding: var(--ec-space-2) var(--ec-space-4);
    border-radius: var(--ec-radius);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--ec-transition);
    white-space: nowrap;
    font-family: inherit;
    box-shadow: var(--ec-shadow-sm);
    position: relative;
    overflow: hidden;
}

    .ec-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s;
    }

    .ec-btn:not(:disabled):active::before {
        width: 300px;
        height: 300px;
    }

    .ec-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        box-shadow: none;
    }

    .ec-btn:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: var(--ec-shadow-md);
    }

    .ec-btn i {
        font-size: 0.875rem;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .ec-btn span {
        position: relative;
        z-index: 1;
    }

/* Primary Button (Next/Complete) - Gold Gradient */
.ec-btn-primary {
    background: linear-gradient(135deg, rgb(var(--ec-gold)), rgb(var(--ec-gold-hover)));
    color: rgb(var(--ec-gray-900));
    border-color: rgba(var(--ec-gold), 0.3);
}

    .ec-btn-primary:not(:disabled):hover {
        background: linear-gradient(135deg, rgb(var(--ec-gold-hover)), rgb(var(--ec-gold)));
        box-shadow: 0 4px 12px rgba(var(--ec-gold), 0.4);
    }

/* Complete Button - Success with Shine */
.ec-btn-complete {
    background: linear-gradient(135deg, rgb(var(--ec-success)), rgba(var(--ec-success), 0.9));
    color: rgb(var(--ec-white));
    border-color: rgba(var(--ec-success), 0.5);
    box-shadow: 0 2px 8px rgba(var(--ec-success), 0.3);
}

    .ec-btn-complete::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        bottom: -50%;
        left: -50%;
        background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
        transform: rotate(45deg);
    }

    .ec-btn-complete:not(:disabled):hover {
        background: linear-gradient(135deg, rgba(var(--ec-success), 0.9), rgba(var(--ec-success), 0.8));
        box-shadow: 0 4px 12px rgba(var(--ec-success), 0.5);
    }

/* Secondary Button (Previous) - Subtle Gray */
.ec-btn-secondary {
    background: rgb(var(--ec-gray-100));
    color: rgb(var(--ec-gray-700));
    border-color: rgb(var(--ec-gray-300));
}

    .ec-btn-secondary:not(:disabled):hover {
        background: rgb(var(--ec-gray-200));
        color: rgb(var(--ec-gray-900));
        border-color: rgb(var(--ec-gray-400));
    }

/* Save Button - Info Blue */
.ec-btn-save {
    background: linear-gradient(135deg, rgb(var(--ec-info-light)), rgb(var(--ec-white)));
    color: rgb(var(--ec-info));
    border-color: rgb(var(--ec-info));
}

    .ec-btn-save:not(:disabled):hover {
        background: linear-gradient(135deg, rgb(var(--ec-info)), rgb(var(--ec-info)));
        color: rgb(var(--ec-white));
        box-shadow: 0 4px 12px rgba(var(--ec-info), 0.3);
    }

/* Cancel Button - Danger Red */
.ec-btn-cancel {
    background: rgb(var(--ec-danger-light));
    color: rgb(var(--ec-danger));
    border-color: rgb(var(--ec-danger));
}

    .ec-btn-cancel:not(:disabled):hover {
        background: rgb(var(--ec-danger));
        color: rgb(var(--ec-white));
        box-shadow: 0 4px 12px rgba(var(--ec-danger), 0.3);
    }

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
    .ec-progress-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .ec-step-circle {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }

    .ec-step-title {
        font-size: 0.688rem;
    }

    .ec-toast-container {
        right: var(--ec-space-4);
        left: var(--ec-space-4);
        min-width: unset;
    }

    .ec-status-toolbar {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: var(--ec-space-3);
    }

    .ec-status-item {
        padding: var(--ec-space-2);
        gap: var(--ec-space-2);
    }

    .ec-status-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .ec-status-label {
        font-size: 0.688rem;
    }

    .ec-status-value {
        font-size: 0.813rem;
    }
}

@media (max-width: 768px) {
    .ec-container {
        padding: var(--ec-space-4);
    }

    .ec-page-title {
        font-size: 1.5rem;
    }

    .ec-progress-container {
        padding: var(--ec-space-3);
    }

    .ec-progress-bar {
        height: 5px;
        margin-bottom: var(--ec-space-3);
    }

    .ec-progress-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ec-space-2);
    }

    .ec-progress-step {
        padding: var(--ec-space-2);
    }

    .ec-step-circle {
        width: 2rem;
        height: 2rem;
        font-size: 0.813rem;
    }

    .ec-step-title {
        font-size: 0.625rem;
    }

    .ec-payment-due-badge {
        font-size: 0.563rem;
        padding: 0.188rem 0.375rem;
    }

    .ec-content {
        padding: var(--ec-space-4);
    }

    .ec-footer {
        flex-wrap: wrap;
        padding: var(--ec-space-3);
    }

    .ec-footer-left,
    .ec-footer-right {
        flex: 0 1 auto;
    }

    .ec-footer-center {
        flex: 1 1 100%;
        order: 3;
    }

    .ec-btn {
        min-width: 120px;
    }

    .ec-toast-container {
        top: var(--ec-space-4);
        right: var(--ec-space-3);
        left: var(--ec-space-3);
        padding: var(--ec-space-4);
    }

    .ec-status-toolbar {
        grid-template-columns: 1fr;
        padding: var(--ec-space-3);
        gap: var(--ec-space-2);
    }

    .ec-btn-download {
        width: 100%;
        justify-content: center;
    }

    .ec-header-actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ec-container {
        padding: var(--ec-space-3);
    }

    .ec-progress-container {
        padding: var(--ec-space-3);
    }

    .ec-progress-bar {
        height: 4px;
    }

    .ec-progress-steps {
        grid-template-columns: 1fr;
        gap: var(--ec-space-2);
    }

    .ec-progress-step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: var(--ec-space-2);
    }

    .ec-step-circle {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }

    .ec-step-title {
        text-align: left;
        align-items: flex-start;
        font-size: 0.688rem;
    }

    .ec-payment-due-badge {
        font-size: 0.563rem;
    }

    .ec-footer {
        padding: var(--ec-space-2);
        gap: var(--ec-space-1);
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .ec-footer-left,
    .ec-footer-center,
    .ec-footer-right {
        gap: var(--ec-space-1);
    }

    .ec-footer-center {
        flex: 0 1 auto;
    }

    .ec-btn {
        padding: var(--ec-space-2) var(--ec-space-2);
        font-size: 0.688rem;
        min-width: auto;
        flex-shrink: 0;
    }

        .ec-btn i {
            font-size: 0.813rem;
        }

        .ec-btn span {
            display: none;
        }

    /* Show tooltips on mobile via title attribute */
    .ec-btn-primary,
    .ec-btn-complete,
    .ec-btn-secondary,
    .ec-btn-save,
    .ec-btn-cancel {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
    }

    .ec-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ec-toast-container {
        padding: var(--ec-space-3);
    }

    .ec-toast-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.5rem;
    }

    .ec-toast-title {
        font-size: 0.938rem;
    }

    .ec-toast-message {
        font-size: 0.813rem;
    }
}
