:root {
    --primary-color: hsl(0, 100%, 50%);
    --primary-light: #ff0000;
    --primary-dark: #ff0000;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #777;
    --white: #ffffff;
    --border-radius: 10px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.modern-header {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.modern-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container h1 {
    margin: 0;
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.back-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.back-btn i {
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* Form Styles */
.ticket-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.section-title {
    color: var(--primary-color);
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.section-title i {
    font-size: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background-color: var(--white);
    margin-top: 5px;
    margin-bottom: 15px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Improved spacing */
.form-group {
    margin-bottom: 20px;
}

/* Checkbox Styles */
.same-address, .save-customer-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 8px 10px;
    /* background-color: #f1f1f1; lighter gray */
    border-radius: var(--border-radius);
    font-size: 0.85rem; /* smaller text */
}

.save-customer-checkbox small {
    font-weight: normal;
    color: #333;
}

.same-address input, .save-customer-checkbox input {
    margin: 0;
    width: 16px;
    height: 16px;
}


/* Ticket Type Cards */
.ticket-type-container {
    display: flex;
    gap: 20px;
    margin: 20px 0 30px 0;
}

.ticket-type-card {
    flex: 1;
    border-radius: var(--border-radius);
    padding: 25px 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--medium-gray);
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ticket-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.1);
    border-color: var(--primary-color);
}

.ticket-type-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(231, 76, 60, 0.05);
}

.ticket-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ticket-type-card.selected::before,
.ticket-type-card:hover::before {
    opacity: 1;
}

.ticket-type-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: var(--transition);
}

.ticket-type-card:hover .ticket-type-icon {
    transform: scale(1.1);
}

.ticket-type-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
    transition: var(--transition);
}

.ticket-type-card:hover .ticket-type-label,
.ticket-type-card.selected .ticket-type-label {
    color: var(--primary-color);
}

.ticket-type-description {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-top: 10px;
    text-align: center;
    opacity: 0;
    max-height: 0;
    transition: var(--transition);
}

.ticket-type-card:hover .ticket-type-description,
.ticket-type-card.selected .ticket-type-description {
    opacity: 1;
    max-height: 50px;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background-color: rgba(231, 76, 60, 0.03);
}

.file-upload i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 15px;
}

/* Button Styles */
.btn-gradient {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

.btn-gradient:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Footer Styles */
.modern-footer {
    text-align: center;
    padding: 25px 20px;
    color: var(--dark-gray);
    font-size: 14px;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 20px;
}

.tech-stack i {
    color: var(--dark-gray);
    transition: var(--transition);
}

.tech-stack i:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Hidden Elements */
#ticket-type-select {
    display: none;
}

/* Customer Suggestions */
.suggestions-dropdown {
    position: absolute;
    width: calc(100% - 30px);
    max-height: 200px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
}

.suggestion-item:hover {
    background-color: var(--light-gray);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Save Customer Checkbox */
.save-customer-checkbox {
    margin: 15px 0;
    padding: 10px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

/* Customer Select Container */
.customer-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#saved-customers {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
}

#refresh-customers {
    background: var(--light-gray);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px;
    cursor: pointer;
    height: 40px;
    margin-top: 23px;
}

#refresh-customers:hover {
    background: var(--medium-gray);
}

/* Button Loader */
.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Assigned Engineer Info */
.assigned-engineer-info {
    background: var(--light-gray);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.assigned-engineer-info h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.assigned-engineer-info p {
    margin-bottom: 0;
}

/* Success Notification */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4BB543;
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.success-notification.show {
    transform: translateX(0);
}

.success-notification i {
    font-size: 24px;
}

.success-notification .content {
    flex: 1;
}

.success-notification .close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

/* Brand Management Section - Enhanced to match main form */
.brand-management-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    border-top: 3px solid var(--primary-color);
}

.brand-management-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.brand-form-group {
    flex: 1;
}

.brand-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.brand-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background-color: var(--white);
}

.brand-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Brand Tabs */
.brand-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.brand-tab {
    padding: 12px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-gray);
    transition: var(--transition);
    position: relative;
}

.brand-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.brand-tab:hover:not(.active) {
    color: var(--text-color);
}

/* Brand List */
.brand-list-container {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 15px;
}

.brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.brand-item {
    background-color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.brand-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.brand-item-actions {
    display: flex;
    gap: 10px;
}

.delete-brand-btn {
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: var(--transition);
}

.delete-brand-btn:hover {
    background-color: #ff0000;
}

.no-brands {
    color: var(--dark-gray);
    font-style: italic;
    text-align: center;
    padding: 30px;
}

/* Enhanced buttons in brand management */
.brand-btn-gradient {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 14px 25px;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-btn-gradient:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Confirmation Modal */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 500px;
    width: 90%;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.modal-btn-cancel {
    background-color: var(--medium-gray);
    border: none;
}

.modal-btn-cancel:hover {
    background-color: #d0d0d0;
}

.modal-btn-confirm {
    background-color: #ff0000;
    color: white;
    border: none;
}

.modal-btn-confirm:hover {
    background-color: #ff0000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-row, .brand-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .ticket-type-container {
        flex-direction: column;
    }
    
    .logo-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .brand-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .brand-tab {
        padding: 10px 15px;
        white-space: nowrap;
    }

    .brand-management-btn {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    .brand-management-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

.brand-management-btn:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}
    .modal-actions {
        flex-direction: column;
    }
}
/* Brand Management Button */
#toggle-brand-management {
background: var(--gradient);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 50px;
font-family: 'Poppins', sans-serif;
font-weight: 500;
font-size: 0.95rem;
cursor: pointer;
transition: var(--transition);
box-shadow: var(--box-shadow);
display: inline-flex;
align-items: center;
gap: 8px;
margin-left: 15px;
}

#toggle-brand-management:hover {
background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

#toggle-brand-management i {
transition: transform 0.3s ease;
}

#toggle-brand-management:hover i {
transform: scale(1.1);
}

/* Responsive adjustment */
@media (max-width: 768px) {
#toggle-brand-management {
margin-left: 0;
margin-top: 15px;
width: 100%;
justify-content: center;
}
}