.events-wrapper {
    display: flex;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

/* Left Column Styling */
.events-form-column {
    flex: 1;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-field input {
    width: 100%;
    padding: 15px 20px;
    background-color: #ab9b863d; /* Light sage grey */
    border: none;
    border-radius: 30px; /* High rounding as per image */
    font-size: 15px;
}

/* Right Column Styling */
.events-summary-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.supplier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid transparent; /* Keeps spacing consistent */
}

.supplier-name {
    font-size: 14px;
    font-weight: 500;
}

.supplier-cost {
    font-weight: 500;
}

.supplier-cost i {
    font-size: 16px;
    margin-left: 10px;
    cursor: pointer;
    vertical-align: middle;
}

.summary-footer {
    border-top: 2px solid #333;
    padding-top: 20px;
    margin-top: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    text-transform: uppercase;
}

/* The Button */
.add-supplier-trigger {
    width: 100%;
    background-color: #ab9b86; 
    color: white !important;
    border: none;
    padding: 18px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-supplier-trigger:hover {
    background-color: #fbe8d0;
    color: black !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .events-wrapper {
        flex-direction: column;
        gap: 30px;
    }
}

/* Modal Overlay */
.custom-modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
}

/* Filters & Tabs */
.modal-filters {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.modal-filters input, .modal-filters select {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    flex: 1;
}

.modal-tabs {
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-link {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #888;
}

.tab-link.active {
    color: #ab9b86; 
    border-bottom: 3px solid #ab9b86;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Supplier Grid Item (Pretty List) */
.supplier-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.supplier-card:hover { background: #f9f9f9; }

.sup-info h4 { margin: 0; font-size: 16px; }
.sup-info span { font-size: 12px; color: #999; text-transform: uppercase; }

.add-sup-btn {
    background: #ab9b86;
    border: none;
    color: white !important;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
}
.supplier-grid {
    display: flex;
    flex-direction: column;
    max-height: 400px; /* Limits height so search bar stays visible */
    overflow-y: auto;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 10px;
}

.supplier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.sup-main-info {
    display: flex;
    flex-direction: column;
}

.supplier-category {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

.sup-budget-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sup-budget-input {
    width: 80px;
    border: none;
    background: transparent;
    text-align: right;
    font-weight: bold;
    font-size: 15px;
    outline: none;
}

.sup-budget-input.is-editing {
    background: #f9f9f9;
    border-bottom: 1px solid #a8b594;
}

.edit-budget-btn, .remove-sup-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.2s;
}

.edit-budget-btn:hover { color: #ab9b86; }
.remove-sup-btn:hover { color: #ff5a5f; }

/* MyListing Material Icon Fix */
.mi {
    font-family: 'Material Icons';
    font-size: 18px;
    vertical-align: middle;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-save { background-color: #ab9b86; color: white !important; border: none; padding: 12px 25px; border-radius: 25px; cursor: pointer; }
.btn-delete { background-color: #8d8d8d; color: white !important; border: none; padding: 12px 25px; border-radius: 25px; cursor: pointer; }
#form-feedback { margin-top: 10px; font-weight: bold; }

.event-sidebar {
    background: transparent;
    border-radius: 20px;
    padding: 20px;
    
}

.create-new-event-btn {
    display: flex;
    width: 100%;
    background-color: #5c5449;; 
    color: white !important;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    cursor: pointer;
    gap: 10px;
}

.event-list-item {
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
    border-left: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

.event-list-item:hover { background: #f0f3eb; }
.event-list-item.active {
    background: #fbe8d0; /* Light sage */
    border-left-color: #5c5449;
}

.event-list-item strong { font-size: 14px; color: #333; }
.event-list-item span { font-size: 11px; color: black; }

#event-welcome-screen {
    background: #ffffff;
    border: 2px dashed #e0e0e0;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.welcome-content i {
    font-size: 50px;
    color: #ab9b86;
    margin-bottom: 20px;
    display: block;
}

.welcome-content h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.welcome-content p {
    color: #777;
    max-width: 300px;
    margin: 0 auto 25px;
    line-height: 1.5;
}

.btn-primary {
    background-color: #ab9b86;
    color: white !important;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}

.plus-icon {
    background-color: transparent !important;
}

.supplier-note-container {
    margin-top: 5px;
}
.sup-note-input {
    width: 100%;
    font-size: 0.8rem;
    color: #666;
    background: transparent;
    border: none;
    resize: none;
    padding: 0;
    height: auto;
    min-height: 20px;
}
.sup-note-input.is-editing {
    border-bottom: 1px dashed #ccc;
    background: #fff;
    color: #000;
}
