/* Page Description */
.page-description {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #2271b1;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.page-description p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #1d2327;
}

.page-description p:last-child {
    margin-bottom: 0;
}

/* Color List Table Styles */
.colors-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    text-align: left;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
    
.colors-table th, .colors-table td {
    padding: 12px 15px;
    border: 1px solid #ccd0d4;
}

.colors-table th {
    background-color: #f8f9fa;
    color: #1d2327;
    font-weight: 600;
    text-align: left;
}

.colors-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.colors-table tr:hover {
    background-color: #f0f0f1;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
}

/* Brand Styles */
.brand-logo {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #dcdcde;
}

.no-logo {
    width: 100px;
    height: 100px;
    background: #f0f0f1;
    border: 1px dashed #b4b9be;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #646970;
    font-size: 13px;
}

.current-logo {
    margin-top: 10px;
}

.current-logo p {
    margin: 0 0 5px;
    font-size: 13px;
    color: #646970;
}

.brand-preview {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    text-align: center;
}

.brand-preview h2 {
    margin: 10px 0 0;
    font-size: 18px;
    color: #1d2327;
}

.notice {
    margin: 20px 0;
    padding: 12px;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.notice-error {
    border-color: #d63638;
}

.notice-error p {
    margin: 0;
    color: #1d2327;
}

.table-footer {
    margin-top: 20px;
    padding: 10px 0;
}



/* Color Form Styles */
.form-table {
    border-collapse: collapse;
    margin-top: 0.5em;
    width: 100%;
    clear: both;
}

.form-table th {
    vertical-align: top;
    text-align: left;
    padding: 20px 10px 20px 0;
    width: 200px;
    line-height: 1.3;
    font-weight: 600;
}

.form-table td {
    margin-bottom: 9px;
    padding: 15px 10px;
    line-height: 1.3;
    vertical-align: middle;
}

.form-table input[type="text"] {
    width: 25em;
    margin: 0;
}

.form-table .description {
    font-size: 13px;
    margin: 2px 0 5px;
    color: #646970;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.submit-row {
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #dcdcde;
}

.submit-row .button-primary {
    margin-right: 10px;
}

#color-picker {
    padding: 5px;
    width: 70px;
    height: 40px;
}

.error-message {
    color: #d63638;
    font-size: 13px;
    margin: 2px 0 5px;
}

/* Fuel Type Styles */
.fuel-type-preview {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.preview-icon {
    font-size: 2em;
    color: #666;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
}

.preview-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.preview-info p {
    margin: 0;
    color: #666;
}

/* Form Table Styles */
.form-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.form-table th {
    width: 200px;
    padding: 15px;
    text-align: right;
    vertical-align: top;
    color: #333;
}

.form-table td {
    padding: 15px;
}

.form-table .description {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9em;
}

/* Submit Row Styles */
.submit-row {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.submit-row .button {
    margin-right: 10px;
}

.submit-row .button.cancel {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.submit-row .button.delete {
    background: #dc3545;
    color: #fff;
    border: none;
}

.submit-row .button.delete:hover {
    background: #c82333;
}

/* Notice Styles */
.notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.notice.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.field-error {
    color: #dc3545;
    font-size: 0.9em;
    margin: 5px 0 0 0;
}

/* General table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.data-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.data-table tr:hover {
    background: #f9f9f9;
}

/* Brand logo styles */
.brand-logo {
    max-width: 100px;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
}

.no-logo {
    width: 100px;
    height: 60px;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.current-logo {
    margin-top: 10px;
}

/* Brand preview styles */
.brand-preview {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.preview-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.preview-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.preview-info p {
    margin: 0;
    color: #666;
}

/* Notice styles */
.notice {
    padding: 12px 15px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.notice.error {
    background: #fef1f1;
    border-left-color: #dc3545;
    color: #721c24;
}

.notice.success {
    background: #f0fff4;
    border-left-color: #28a745;
    color: #155724;
}

/* Button styles */
.button {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.button:hover {
    background: #0056b3;
}

.button.small {
    padding: 4px 8px;
    font-size: 12px;
}

.button.delete {
    background: #dc3545;
}

.button.delete:hover {
    background: #c82333;
}

.button.cancel {
    background: #6c757d;
    margin-left: 10px;
}

.button.cancel:hover {
    background: #5a6268;
}

/* Form styles */
.form {
    max-width: 800px;
    margin: 20px 0;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.form-table th,
.form-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.form-table th {
    width: 200px;
    background: #f5f5f5;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.description {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.submit-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* Page description styles */
.page-description {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.page-description p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Fuel type specific styles */
.fuel-type-preview {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.preview-icon {
    font-size: 2em;
    margin-right: 20px;
    color: #666;
}

.preview-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.preview-info p {
    margin: 0;
    color: #666;
}

.delete-form {
    margin-top: 20px;
}

/* Action buttons container */
.action-buttons {
    margin: 20px 0;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin: 20px 0;
}

.upload-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.upload-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}

.upload-form label {
    font-weight: 600;
    color: #374151;
}

.upload-form input[type="file"] {
    padding: 6px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
}

.upload-form .help-text {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.upload-form .button {
    align-self: center;
}

/* General table styles */
.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wp-list-table th,
.wp-list-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.wp-list-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.wp-list-table tr:hover {
    background: #f9f9f9;
}

/* Column styles */
.column-icon {
    width: 80px;
}

.column-name {
    width: 200px;
}

.column-description {
    width: 50%;
}

.column-actions {
    width: 120px;
    text-align: right;
}

/* Row actions */
.row-actions {
    color: #666;
    font-size: 13px;
}

.row-actions span {
    margin: 0 4px;
}

.row-actions a {
    color: #0073aa;
    text-decoration: none;
}

.row-actions a:hover {
    color: #00a0d2;
}

.row-actions .delete a {
    color: #dc3545;
}

.row-actions .delete a:hover {
    color: #c82333;
}

/* Brand logo styles */
.brand-logo {
    max-width: 100px;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
}

.no-logo {
    width: 100px;
    height: 60px;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.current-logo {
    margin-top: 10px;
}

/* Brand preview styles */
.brand-preview {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.preview-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.preview-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.preview-info p {
    margin: 0;
    color: #666;
}

/* Notice styles */
.notice {
    padding: 12px 15px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.notice.error {
    background: #fef1f1;
    border-left-color: #dc3545;
    color: #721c24;
}

.notice.success {
    background: #f0fff4;
    border-left-color: #28a745;
    color: #155724;
}

/* Button styles */
.button {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.button:hover {
    background: #0056b3;
}

.button.small {
    padding: 4px 8px;
    font-size: 12px;
}

.button.delete {
    background: #dc3545;
}

.button.delete:hover {
    background: #c82333;
}

.button.cancel {
    background: #6c757d;
    margin-left: 10px;
}

.button.cancel:hover {
    background: #5a6268;
}

/* Form styles */
.form {
    max-width: 800px;
    margin: 20px 0;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.form-table th,
.form-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.form-table th {
    width: 200px;
    background: #f5f5f5;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.description {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.submit-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* Page description styles */
.page-description {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.page-description p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Fuel type specific styles */
.fuel-type-preview {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.preview-icon {
    font-size: 2em;
    margin-right: 20px;
    color: #666;
}

.preview-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.preview-info p {
    margin: 0;
    color: #666;
}

.delete-form {
    margin-top: 20px;
}

/* Action buttons container */
.action-buttons {
    margin: 20px 0;
}
