/* ==============================
   GLOBAL VARIABLES & RESET
   ============================== */
:root {
    --primary-color: #e67e22; /* Orange */
    --secondary-color: #2c3e50; /* Dark Blue/Grey */
    --accent-color: #3498db; /* Blue */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #333;
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* ==============================
   TYPOGRAPHY
   ============================== */
h1, h2, h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 15px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
    display: inline-block;
    background: rgba(230, 126, 34, 1);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn:hover {
    background: #d35400;
    text-decoration: none;
}

.btn-secondary {
    background: rgba(34, 140, 230, 1);
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #2980b9;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.8em;
}
.hero_btn1{
	background: rgba(230, 126, 34, 0.4);
}
.hero_btn2{
	background: rgba(34, 140, 230, 0.4);
}
/* ==============================
   LAYOUT SECTIONS
   ============================== */
section {
    padding: 40px 0;
    text-align: center;
}

section:nth-of-type(even) {
    background: var(--light-bg);
}

/* ==============================
   HEADER & NAVIGATION
   ============================== */
header {
    background: #fff;
    color: #333;
    padding: 3px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

header .logo {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
}

header .logo img {
    height: 64px;
    margin-right: 10px;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #333;
}

/* ==============================
   HERO SECTION
   ============================== */
#hero {
    background: url('hero_bg.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    overflow: hidden;
}

.hero-slideshow-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow-item.active {
    opacity: 1;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    bottom: 10pt;
}

#hero h1 {
    font-size: 3.5em;
    margin-bottom: 0px;
    color: var(--white);
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#hero .btn-group .btn {
    margin: 0 10px;
}

/* ==============================
   DASHBOARD LAYOUT
   ============================== */
.dashboard-section {
    background: var(--light-bg);
    min-height: calc(100vh - 70px);
    padding: 20px 0;
}

.dashboard-header {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-info {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ==============================
   FILTERS
   ============================== */
.filters-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
}

/* ==============================
   MESSAGES GRID & CARDS
   ============================== */
.messages-grid {
    display: grid;
    gap: 20px;
}

.message-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.message-card:hover {
    transform: translateY(-2px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.message-id {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1em;
}

.message-date {
    color: #666;
    font-size: 0.9em;
}

.message-contact {
    flex-basis: 100%;
}

.message-contact strong {
    font-size: 1.2em;
    color: var(--secondary-color);
}

.message-contact small {
    color: var(--accent-color);
}

.message-content {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.message-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.detail-item {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.detail-item strong {
    color: var(--secondary-color);
}

/* ==============================
   STATUS BADGES
   ============================== */
.status-section {
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-new { background: #3498db; color: white; }
.status-assigned { background: #f39c12; color: white; }
.status-on_hold { background: #95a5a6; color: white; }
.status-cancelled { background: #e74c3c; color: white; }
.status-rejected { background: #c0392b; color: white; }
.status-completed { background: #27ae60; color: white; }

/* ==============================
   FORMS & ACTIONS
   ============================== */
.action-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
    color: var(--secondary-color);
}

.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ==============================
   EMPTY STATES & ALERTS
   ============================== */
.no-messages {
    background: var(--white);
    padding: 60px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-messages i {
    font-size: 3em;
    color: #ddd;
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    text-align: center;
}

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

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ==============================
   PROFILE BADGE
   ============================== */
.profile-badge {
    position: absolute;
    top: calc(50% - 25px);
    right: 5px;
    display: inline-flex;
    align-items: center;
    height: 50px;
    border-radius: 25px;
    background-color: #3498db;
    color: white;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    text-decoration: none;
}

.profile-badge .initials {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    background-color: #3498db;
    z-index: 2;
}

.details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.4s ease;
}

.full-name {
    font-weight: bold;
    font-size: 14px;
}

.user-type {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    border-left: 1px solid rgba(255,255,255,0.3);
    height: 30px;
}

.logout-btn svg {
    transition: transform 0.2s;
}

.logout-btn:hover svg {
    transform: scale(1.1);
    stroke: #ffcccc;
}

/* Profile Badge Hover States */
.profile-badge:hover,
.profile-badge:focus-within {
    background-color: #2980b9;
    padding-right: 5px;
}

.profile-badge:hover .details,
.profile-badge:focus-within .details {
    max-width: 150px;
    opacity: 1;
    margin-left: 5px;
    margin-right: 15px;
}

.profile-badge:hover .logout-btn,
.profile-badge:focus-within .logout-btn {
    width: 40px;
    opacity: 1;
    padding-left: 10px;
}

/* ==============================
   HOME PAGE SPECIFIC SECTIONS
   ============================== */
#why-choose-us .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

#why-choose-us .grid-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

#why-choose-us .grid-item:hover {
    transform: translateY(-5px);
}

#why-choose-us .grid-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

#vehicle-showcase .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

#vehicle-showcase .vehicle-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
}

#vehicle-showcase .vehicle-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

#vehicle-showcase .vehicle-card .content {
    padding: 20px;
}

#vehicle-showcase .vehicle-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
    color: var(--secondary-color);
}

#vehicle-showcase .vehicle-card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

#vehicle-showcase .vehicle-card .btn {
    width: 100%;
    text-align: center;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    padding: 12px 0;
}

#similipal-highlights .highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

#similipal-highlights .highlight-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#similipal-highlights .highlight-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

#similipal-highlights .highlight-item:hover img {
    transform: scale(1.05);
}

#similipal-highlights .highlight-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#similipal-highlights .highlight-item:hover .overlay {
    opacity: 1;
}

#testimonials .testimonial-carousel {
    margin-top: 40px;
}

#testimonials .testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 20px auto;
}

#testimonials .testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

#testimonials .testimonial-card .author {
    font-weight: bold;
    color: var(--primary-color);
}

#cta-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
}

#cta-footer h2 {
    color: var(--white);
}

#cta-footer p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

#cta-footer .btn-group .btn {
    /*margin: 0 10px;*/
}

footer {
    background: #333;
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 0;
}

/* ==============================
   UTILITY CLASSES
   ============================== */
#pg_head {
    font-size: 20px;
    margin-bottom: 0 !important;
}

/* ==============================
   RESPONSIVE DESIGN
   ============================== */

/* Desktop Styles */
@media (min-width: 768px) {
    .message-header {
        flex-wrap: nowrap;
    }
    
    .message-contact {
        flex-basis: auto;
        flex-grow: 1;
        margin: 0 20px;
    }
    
    .action-form {
        grid-template-columns: 1fr 1fr auto;
    }
}

/* Tablet & Mobile */
@media (max-width: 767px) {
    /* Header & Navigation */
    header .menu-toggle {
        display: block;
    }

    header nav ul li a {
        color: var(--white);
    }

    header nav {
        display: none;
        width: 100%;
        text-align: center;
        background: #333;
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    header nav ul li {
        margin: 10px 0;
    }

    /* Dashboard Components */
    .filter-group {
        flex-direction: column;
    }

    .filter-item {
        min-width: 100%;
    }

    .action-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn {
        width: 100%;
        margin-top: 0;
    }

    .user-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .message-details {
        grid-template-columns: 1fr;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 8px;
    }
    
    /* Home Page Adjustments */
    .btn-group .btn {
        display: block;
        margin: 10px auto;
    }
    
    #hero .btn-group .btn {
        margin: 10px auto;
        width: 85%;
    }

    #why-choose-us .grid,
    #vehicle-showcase .grid,
    #similipal-highlights .highlights-grid {
        grid-template-columns: 1fr;
    }

    #vehicle-showcase .vehicle-card .btn {
        border-radius: 5px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    header .logo {
        font-size: 1.5em;
    }
    
    .dashboard-header h2 {
        font-size: 1.5em;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-contact {
        margin: 10px 0;
    }
    
    #pg_head {
        color: #ff0000;
        font-size: 5px;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    /* Hero Section */
    #hero h1 {
        font-size: 2em;
    }
    
    #hero p {
        font-size: 0.9em;
    }
}