/* Fleet Pages - Exact Design Match */
html,
body {
    background-color: #f5f5f5;
}

/* Page Background */
.fleet-page-wrapper {
    background-color: #fff !important;
    min-height: 100vh;
}

/* Header section containing back button */
.fleet-header-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

/* Back Button - Inside header area */
.fleet-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: none;
    padding: 8px 0;
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fleet-back-button:hover {
    color: #c8a652;
}

.fleet-back-button svg {
    width: 20px;
    height: 20px;
}

/* White Content Card */
.fleet-content-card {
    background-color: #ffffff !important;
    margin: 20px;

    border-radius: 12px;
}

/* Page Title & Subtitle */
.fleet-page-title {
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;

    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #000;
    margin-bottom: 0.25rem;
    display: block;
    font-family: "Raleway", sans-serif;
}

.fleet-page-subtitle {
    font-family: "Raleway", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
    margin: 0 0 32px 0 !important;
}

/* Section Headers - Gold Color */
.fleet-section-title {
    font-family: "Raleway", sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #c8a652 !important;
    margin: 32px 0 24px 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
}

.fleet-section-title:first-of-type {
    margin-top: 0 !important;
}

/* Horizontal Divider */
.fleet-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
    margin: 32px 0;
}

/* Form Layout */
.fleet-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.fleet-form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 24px;
    margin-bottom: 24px;
}

.fleet-form-full {
    grid-column: span 2;
}

/* Field Labels - Black, Bold */
.fleet-field-label {
    font-family: "Raleway", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.fleet-field-label .required-asterisk {
    color: #ef4444;
    margin-left: 4px;
}

/* Input Fields - Light Gray Border, Rounded */
.fleet-input,
.fleet-select,
.fleet-textarea {
    width: 100% !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    font-family: "Raleway", sans-serif !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.fleet-input::placeholder,
.fleet-select::placeholder,
.fleet-textarea::placeholder {
    color: #9ca3af !important;
    font-size: 14px !important;
}

.fleet-input:focus,
.fleet-select:focus,
.fleet-textarea:focus {
    outline: none !important;
    border-color: #c8a652 !important;
    box-shadow: 0 0 0 3px rgba(200, 166, 82, 0.1) !important;
}

.fleet-textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

/* Select Dropdown Arrow */
.fleet-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C8A652' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px !important;
}

/* File Upload Button */
.fleet-upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: #ffffff;
    color: #6b7280;
    font-family: "Raleway", sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fleet-upload-button:hover {
    border-color: #c8a652;
    background-color: #fffbf5;
}

.fleet-upload-button svg {
    width: 20px;
    height: 20px;
    color: #c8a652;
}

/* Action Buttons Container */
.fleet-action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
}

/* Cancel Button - Gold Outline */
.fleet-btn-cancel {
    font-family: "Raleway", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 48px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: 2px solid #c8a652 !important;
    background-color: transparent !important;
    color: #c8a652 !important;
    text-decoration: none;
    display: inline-block;
}

.fleet-btn-cancel:hover {
    background-color: #fff9ed !important;
    transform: translateY(-1px);
}

/* Add/Save Button - Gold Filled */
.fleet-btn-submit {
    font-family: "Raleway", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 48px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background-color: #c8a652 !important;
    color: #ffffff !important;
}

.fleet-btn-submit:hover {
    background-color: #b89546 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(200, 166, 82, 0.3);
}

/* Override Filament Styles */
.fi-section {
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.fi-section-content {
    padding: 0 !important;
}

.fi-section-header {
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
}

.fi-section-header-heading {
    font-family: "Raleway", sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #c8a652 !important;
    margin: 0 !important;
    padding-bottom: 8px !important;
}

.fi-fo-component-ctn {
    margin-bottom: 0rem !important;
}

.fi-fo-field-wrp {
    margin-bottom: 0rem !important;
}

.fi-fo-field-wrp-label {
    font-family: "Raleway", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin-bottom: 10px !important;
}

.fi-fo-field-wrp-label .fi-required {
    color: #ef4444 !important;
}

.fi-input,
.fi-select-input,
.fi-textarea {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    font-family: "Raleway", sans-serif !important;
    font-size: 15px !important;
}

.fi-input:focus,
.fi-select-input:focus,
.fi-textarea:focus {
    outline: none !important;
    border-color: #c8a652 !important;
    box-shadow: 0 0 0 3px rgba(200, 166, 82, 0.1) !important;
    ring: 0 !important;
}

.fi-select-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C8A652' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
}

/* File Upload Styling */
.fi-fo-file-upload-cta {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    padding: 12px 16px !important;
}

.fi-fo-file-upload-cta:hover {
    border-color: #c8a652 !important;
    background-color: #fffbf5 !important;
}

.fi-fo-file-upload-cta-label {
    color: #6b7280 !important;
    font-family: "Raleway", sans-serif !important;
    font-size: 15px !important;
}

.fi-fo-file-upload-cta-icon {
    color: #c8a652 !important;
}

/* Grid Layouts */
.fi-fo-grid {
    gap: 24px !important;
}

/* Form Actions */
.fi-form-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
}

.fi-btn {
    font-family: "Raleway", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 48px !important;
    border-radius: 8px !important;
    margin-top: -30px !important;
}

.fi-btn-primary {
    background-color: #c8a652 !important;
    color: #000000 !important;
    border: none !important;
}

.fi-btn-primary:hover {
    background-color: #b89546 !important;
}

.fi-btn-secondary,
.fi-btn-outlined {
    border: 2px solid #c8a652 !important;
    background-color: #c8a652 !important;
    color: #000 !important;
}

.fi-btn-secondary:hover,
.fi-btn-outlined:hover {
    background-color: #fff9ed !important;
}

/* Remove any dark mode artifacts */
.dark .fleet-content-card,
[data-theme="dark"] .fleet-content-card {
    background-color: #ffffff !important;
}

.dark .fleet-input,
.dark .fleet-select,
.dark .fleet-textarea,
[data-theme="dark"] .fleet-input,
[data-theme="dark"] .fleet-select,
[data-theme="dark"] .fleet-textarea {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #d1d5db !important;
}

.beige-section > .fi-section-header {
    background-color: #f5e6c8;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem 0.75rem 0 0;
}

.beige-section .fi-section-header-heading {
    color: #6b4e16;
    font-weight: 600;
}

.beige-section .fi-section-header-description {
    color: #7a5c1e;
}

.fi-file-upload {
    border: 1px solid #e5c97b !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    padding: 0.75rem 1rem !important;
}

.fi-file-upload:hover {
    border-color: #c8a652 !important;
    background-color: #fffbf5 !important;
}

/* Remove black background from FilePond */
.filepond--panel-root {
    background-color: #ffffff !important;
}

.filepond--drop-label {
    color: #4b5563 !important;
}

.fi-select-input svg,
.fi-input-wrp svg {
    color: #000 !important;
    opacity: 1 !important;
}

.fi-input-wrp {
    background-color: #fff;
}

.fi-select-input[data-multiple] {
    padding-top: 1.75rem !important;
}

.fi-select-input[data-multiple] .fi-input-label {
    transform: translateY(-0.75rem) scale(0.85) !important;
    background: #fff;
    padding: 0 0.25rem;
}

.fi-select-panel {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.fi-select-option {
    color: #000000 !important;
}

.fi-select-option:hover {
    background-color: #f5f5f5 !important;
}

.fi-select-input,
.fi-select-input input,
.fi-select-input .fi-input {
    color: #000000 !important;
}

.fi-select-input [data-value] {
    color: #000000 !important;
    background-color: #f7f1e3 !important;
    border: 1px solid #c8a652;
}

.fi-select-input::after {
    border-right: 2px solid #c8a652 !important;
    border-bottom: 2px solid #c8a652 !important;
}

.fi-select-input .fi-input-label {
    color: #8a8a8a !important;
}

/* Sidebar Match - Gold Theme */
.fi-sidebar {
    background-color: #c8a652 !important;
}

.fi-sidebar-group-label,
.fi-sidebar-item-label,
.fi-sidebar-item-button svg {
    color: #000000 !important;
}

.fi-sidebar-item-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.fi-sidebar-item-button.fi-active {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.fi-sidebar-item-button.fi-active svg {
    color: #000000 !important;
}

.tab-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.tab-active {
    background: #000;
    color: #c8a652;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.search-form {
    flex: 1;
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    height: 52px;
    align-items: center;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 16px;
    font-size: 15px;
    grid-area: 1;
    outline: none !important;
}

.search-btn {
    width: 44px;
    height: 44px;
    background: #c8a652;
    border: none;
    border-radius: 50%;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-primary {
    background: #c8a652;
    color: #000;
    font-weight: 600;
    padding: 0 32px;
    height: 52px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #c8a652;
    color: #000;
    font-weight: 600;
    padding: 16px;
    text-align: center;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    text-align: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
}

.status-active {
    background: #def7ec;
    color: #03543f;
}

.status-inactive {
    background: #fde8e8;
    color: #9b1c1c;
}

.action-cell {
    display: flex;
    gap: 12px;
    align-items: center;
}

.action-icon {
    color: #9ca3af;
    transition: 0.2s;
    cursor: pointer;
    background: transparent;
    border: none;
}

.action-icon:hover {
    color: #c8a652;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.form-header {
    margin-bottom: 32px;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    font-family: Raleway, sans-serif;
}

.form-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.section-label {
    font-size: 18px;
    font-weight: 600;
    color: #c8a652;
    margin: 32px 0 24px;
    border-bottom: none;
}

.form-row {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.two-col {
    grid-template-columns: 1fr 1fr;
}

.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    background: white;
}

.form-input:focus,
.form-select:focus {
    border-color: #c8a652;
    outline: none;
}

.form-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 32px 0;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    font-weight: 600;
    padding: 0 32px;
    height: 52px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
}

.file-hidden {
    display: none;
}

.rich-editor-wrapper {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.editor-toolbar {
    background: #f9fafb;
    border-bottom: 1px solid #d1d5db;
    padding: 8px;
    display: flex;
    gap: 4px;
}

.editor-body {
    min-height: 150px;
    padding: 16px;
    outline: none;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.detail-heading {
    font-size: 18px;
    font-weight: 600;
    color: #c8a652;
    margin: 32px 0 24px;
}

.detail-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 16px;
    color: #111827;
    font-weight: 500;
}

.detail-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 32px 0;
}
