/* =========================================
   GENERAL STYLES
   ========================================= */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f8f9fa;
}

.main-content {
    margin-top: 70px;
    padding: 2rem;
}

/* =========================================
   TOP HEADER & NAVIGATION
   ========================================= */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #161920;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-section a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* =========================================
   USER DROPDOWN
   ========================================= */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    margin-top: 0.5rem;
    min-width: 160px;
    z-index: 999;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: #1e293b;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
}

/* =========================================
   PROFILE PAGE (setting.php)
   ========================================= */
.profile-container {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
}

.profile-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profile-details {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    margin: auto;
    text-align: left;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.detail-label {
    width: 140px;
    font-weight: bold;
}

.btn-dark-pill {
    background-color: #1a1a1a;
    color: white;
    border-radius: 50px;
    padding: 12px 60px;
    font-weight: bold;
    border: none;
    margin-top: 20px;
    cursor: pointer; /* Added for usability */
}

/* =========================================
   VEHICLE & DASHBOARD SHARED HOVER LOGIC
   ========================================= */
.vehicle-row, .stat-box, .earning-box, .action-card {
    background: #fff;
    transition: all 0.3s ease;
}

.vehicle-row:hover, .stat-box:hover, .earning-box:hover, .action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    border-color: #4e73df !important;
}

/* =========================================
   VEHICLE MANAGEMENT (manage_cars.php)
   ========================================= */
.vehicle-row {
    border: 2px solid #000;
    border-radius: 60px;
    padding: 20px 45px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.car-image-pill { 
    width: 170px; 
    height: 110px; 
    object-fit: cover; 
    border-radius: 35px; 
    border: 1px solid #eee; 
    background: #f8f9fa; 
}

.status-pill { 
    padding: 8px 30px; 
    border-radius: 25px; 
    font-weight: 700; 
    min-width: 130px; 
    text-align: center; 
    color: white; 
}

.action-circle { 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    background: #fff; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    color: #333; 
    margin-left: 12px; 
    transition: 0.2s; 
    text-decoration: none; 
    border: 2px solid #e0e0e0;
    cursor: pointer; 
}

.action-circle:hover { 
    background: #4e73df; 
    color: #fff; 
    border-color: #4e73df; 
}

.action-circle.delete-btn:hover { 
    background: #e74a3b; 
    border-color: #e74a3b; 
}

/* =========================================
   DASHBOARD CARDS & STATS
   ========================================= */
.stat-box {
    border: 2px solid #000;
    border-radius: 20px;
    text-align: center;
    padding: 20px;
    height: 100%;
}

.stat-circle {
    width: 55px;
    height: 55px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 0;
    font-weight: bold;
    font-size: 1.2rem;
    color: #4e73df;
}

.earning-box {
    border: 3px solid #000;
    border-radius: 30px;
    padding: 35px 20px;
    text-align: center;
}

.earning-value {
    color: #4e73df;
    font-weight: 800;
}

/* =========================================
   SWEETALERT2 CUSTOMIZATION
   ========================================= */
.swal2-confirm {
    background: transparent !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
}

.swal2-confirm:hover {
    background: #f3f4f6 !important;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* =========================================
   INCIDENT REPORT (report.php)
   ========================================= */
.report-card {
    border: 3px solid #161920; /* Matching your top-header */
    border-radius: 40px;
    overflow: hidden;
    background: #fff;
    max-width: 800px;
    margin: 20px auto;
}

.report-header-banner {
    background: #161920;
    color: white;
    padding: 30px;
    text-align: center;
}

/* Category Selection (Badge Style) */
.problem-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.type-pill {
    cursor: pointer;
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    transition: 0.3s;
    font-weight: 600;
    color: #666;
}

.btn-check:checked + .type-pill {
    background-color: #4e73df;
    border-color: #4e73df;
    color: white;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
}

/* Custom Textarea matching your inputs */
.report-textarea {
    border: 2px solid #eee;
    border-radius: 20px;
    padding: 15px;
    transition: 0.3s;
}

.report-textarea:focus {
    border-color: #4e73df;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

/* Modern Upload Zone */
.upload-zone-wrapper {
    position: relative;
    border: 2px dashed #adb5bd;
    border-radius: 25px;
    padding: 40px 20px;
    text-align: center;
    background: #fcfcfd;
    transition: 0.3s;
    cursor: pointer;
}

.upload-zone-wrapper:hover {
    border-color: #4e73df;
    background: #f8faff;
}

.upload-zone-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 2.5rem;
    color: #adb5bd;
    margin-bottom: 10px;
}

/* =========================================
   FEEDBACK MODULE STYLES
   ========================================= */
.feedback-main-card {
    border-radius: 20px;
    overflow: hidden;
}

.feedback-item-card {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feedback-item-card:hover {
    transform: translateY(-5px);
}

.feedback-text {
    min-height: 60px;
    font-size: 0.95rem;
}

.reply-bubble {
    background: #f0f4f8;
    border-left: 4px solid #4e73df;
}

.feedback-textarea {
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid #ced4da;
}

.feedback-textarea:focus {
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.1);
    border-color: #4e73df;
}

.empty-icon {
    width: 80px;
    opacity: 0.5;
}

.rating-stars {
    font-size: 0.9rem;
}

/* Stats cards in feedback */
.card-body h2 {
    letter-spacing: -1px;
}

.text-primary {
    color: #4e73df !important; /* Standardized to your blue theme */
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,0.075)!important;
}

/* =========================================
   PROFILE PAGE (setting.php)
   ========================================= */
.profile-container {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
}

.profile-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #161920;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profile-details {
    background: #fff;
    padding: 30px;
    border-radius: 25px; /* Matches your feedback cards */
    max-width: 500px;
    margin: auto;
    text-align: left;
    border: 1px solid #eee;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid #f1f1f1;
    padding: 12px 0;
}

.detail-label {
    width: 140px;
    font-weight: 700;
    color: #4e73df; /* Using your brand blue */
}

/* Modal Customization */
.modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-body .form-control {
    border: 1px solid #dee2e6;
    padding: 10px 20px;
}






