/* ============================================
   CRM Car Rental - Modular CSS (Optimized)
   ============================================ */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-gray: #ecf0f1;
    --dark-gray: #34495e;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #27ae60;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   WRAPPERS & CONTAINERS
   ============================================ */
.container {
    max-width: 1200px;
    /*margin: 0 auto;*/
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card-body h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: var(--primary-color);
    line-height: 1.4;
}

.card-body h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-body h4 a:hover {
    color: var(--secondary-color);
}

.card-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

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

.form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

.form-col.phone { flex: 0 0 15%; }
.form-col.website { flex: 0 0 30%; }
.form-col.address { flex: 1; }

.label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    margin: 10px 0;
}

.input,
.select,
.crm-form input[type="text"],
.crm-form input[type="email"],
.crm-form input[type="password"] {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.input:hover,
.select:hover,
.crm-form input:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input:focus,
.select:focus,
.crm-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

/* ============================================
   BUTTONS (Simplified & Unified)
   ============================================ */
.button,
.button-primary,
.button-secondary,
.crm-form button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    color: #fff;
    margin: 10px 0;
}

/* Default button */
.button,
.button-primary,
.crm-form button {
    background-color: var(--primary-color);
}

/* Secondary button */
.button-secondary {
    background-color: var(--secondary-color);
}

/* Hover states */
.button:hover,
.button-primary:hover,
.button-secondary:hover,
.crm-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.button:hover,
.button-primary:hover,
.crm-form button:hover {
    background-color: var(--dark-gray);
}

.button-secondary:hover {
    background-color: #c0392b;
}

/* ============================================
   MESSAGES
   ============================================ */
.message,
.crm-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.message.error,
.crm-message.error {
    background-color: #ffebee;
    border-left: 4px solid #c62828;
    color: #b71c1c;
    display: block;
}

.message.success,
.crm-message.success {
    background-color: #e8f5e9;
    border-left: 4px solid #2e7d32;
    color: #1b5e20;
    display: block;
}

/* ============================================
   GRID & IMAGE
   ============================================ */
.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.no-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #ddd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   ACCOUNT HANDLER
   ============================================ */
.crm-account-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.crm-col {
    width: 48%;
    min-width: 320px;
    padding: 20px;
}

.crm-col .card {
    padding: 20px;
}

.crm-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.crm-form a {
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
}

.crm-form a:hover {
    text-decoration: underline;
}

.crm-hidden { display: none; }

.crm-form .radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

/* ============================================
   DASHBOARD
   ============================================ */
.crm-dashboard-container {
    flex-direction: column;
    gap: 20px;
}

.crm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.crm-tabs .button {
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 4px;
}

.crm-tabs .button-primary {
    background-color: var(--secondary-color);
}

/* ============================================
   COMPANY LIST
   ============================================ */
.crm-card-body-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    flex-direction: row;
}

.crm-card-logo,
.crm-card-logo-placeholder {
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.crm-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crm-card-actions {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.img-delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    padding: 0;
}

.page-banner-title {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
	margin-bottom: 20px;
	font-size: 20px;
}
.page-banner-title h1
{
	font-size: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 12px; }
    .form-col.phone, .form-col.website, .form-col.address { flex: 1; }
    .input, .select, .button { width: 100%; }
    .grid { grid-template-columns: 1fr; gap: 15px; }
    .crm-account-container, .crm-dashboard-container { flex-direction: column; gap: 20px; }
    .crm-col, .crm-card-actions .button { width: 100%; }
    .crm-card-body-flex { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .form-wrapper { padding: 12px; }
    .label, .input, .select { font-size: 13px; }
    .input, .select { padding: 8px 10px; }
    .card-body { padding: 15px; }
    .card-body h4 { font-size: 16px; }
}
.ast-container, .ast-container-fluid
{
	padding-left: 10px;
	padding-right: 10px;
}
.form-row .wp-editor-wrap
{
	width: 100%;
}