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

body {
    font-family: 'Inter', sans-serif;
    background: #f5f0f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== TWO COLUMNS ===== */
.login-wrapper {
    display: flex;
    max-width: 920px;
    width: 100%;
    min-height: 550px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 40px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* ===== LEFT COLUMN ===== */
.brand-section {
    flex: 1;
    background: #fcf7f7;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f0e8e8;
}

.brand-content {
    text-align: center;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-name {
    font-size: 32px;
    font-weight: 700;
    color: #3d2020;
}

.brand-tagline {
    font-size: 13px;
    color: #8a6a6a;
    margin-top: 4px;
    letter-spacing: 1.5px;
}

/* ===== RIGHT COLUMN ===== */
.form-section {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.form-container {
    width: 100%;
    max-width: 340px;
}

.form-container h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2d1a1a;
    margin-bottom: 4px;
}

.form-container .subtitle {
    font-size: 14px;
    color: #8a6a6a;
    margin: 4px 0 24px 0;
}

/* ===== ALERTS ===== */
.alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert.error {
    background: #fef0f0;
    color: #b34747;

}

.alert.success {
    background: #f0fef0;
    color: #47b347;

}

.alert.warning {
    background: #fefcf0;
    color: #b39747;

}

/* ===== FORM ===== */
.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a2a2a;
    margin-bottom: 4px;
}

.field input,
.field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e8dcdc;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #fcfaf9;
    transition: border 0.15s ease;
    color: #2d1a1a;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #c07070;
    background: #ffffff;
}

.field input::placeholder {
    color: #b8a0a0;
}

.field select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6a6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ===== OPTIONS ===== */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin: 6px 0 18px 0;
}

.options label {
    color: #5a3a3a;
    cursor: pointer;
}

.options input[type="checkbox"] {
    accent-color: #b34747;
    margin-right: 6px;
    cursor: pointer;
}

.options a {
    color: #b34747;
    text-decoration: none;
    font-weight: 500;
}

.options a:hover {
    text-decoration: underline;
}

/* ===== BUTTON ===== */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #b34747;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s ease;
}

button[type="submit"]:hover {
    background: #9a3a3a;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* ===== FORM FOOTER ===== */
.form-footer {
    text-align: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f0e8e8;
}

.form-footer p {
    font-size: 13px;
    color: #7a5a5a;
}

.form-footer a {
    color: #b34747;
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== REGISTER (Legacy) ===== */
.register {
    text-align: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f0e8e8;
}

.register p {
    font-size: 13px;
    color: #7a5a5a;
}

.register a {
    color: #b34747;
    text-decoration: none;
    font-weight: 500;
}

.register a:hover {
    text-decoration: underline;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.admin-card {
    background: #fcf7f7;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #f0e8e8;
    transition: border 0.15s ease;
}

.admin-card:hover {
    border-color: #c07070;
}

.admin-card h3 {
    color: #3d2020;
    margin-bottom: 5px;
    font-size: 16px;
}

.admin-card p {
    color: #8a6a6a;
    font-size: 13px;
    margin: 0;
}

.admin-card .count {
    font-size: 32px;
    font-weight: 700;
    color: #b34747;
    margin: 10px 0 0;
}

/* ===== TABLE ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: #f5f0f0;
}

.admin-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #4a2a2a;
    border-bottom: 2px solid #f0e8e8;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0e8e8;
    color: #3d2020;
}

.admin-table tr:hover td {
    background: #fcf7f7;
}

.status-active {
    color: #47b347;
    font-weight: 500;
}

.status-inactive {
    color: #b34747;
    font-weight: 500;
}

/* ===== ACTION BUTTONS ===== */
.btn-action {
    padding: 4px 12px;
    border-radius: 4px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s ease;
}

.btn-action.btn-edit {
    background: #f0e8e8;
    color: #4a2a2a;
}

.btn-action.btn-edit:hover {
    background: #e0d4d4;
}

.btn-action.btn-delete {
    background: #fef0f0;
    color: #b34747;
}

.btn-action.btn-delete:hover {
    background: #fce0e0;
}

.btn-action.btn-toggle {
    background: #e8f0e8;
    color: #47b347;
}

.btn-action.btn-toggle:hover {
    background: #d4e8d4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        min-height: 100vh;
        border-radius: 0;
    }

    .brand-section {
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid #f0e8e8;
    }

    .brand-logo {
        width: 70px;
        height: 70px;
    }

    .brand-name {
        font-size: 26px;
    }

    .form-section {
        padding: 30px 25px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 12px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .brand-section {
        padding: 20px 15px;
    }

    .brand-logo {
        width: 56px;
        height: 56px;
    }

    .brand-name {
        font-size: 22px;
    }

    .form-section {
        padding: 20px 18px;
    }

    .options {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .admin-table {
        font-size: 11px;
    }

    .admin-table th,
    .admin-table td {
        padding: 6px 8px;
        display: block;
        text-align: left;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        display: block;
        border-bottom: 1px solid #f0e8e8;
        padding: 10px 0;
    }

    .admin-table td {
        border-bottom: none;
        padding: 4px 8px;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #4a2a2a;
        display: inline-block;
        width: 80px;
    }
}



/* ===== DASHBOARD WRAPPER ===== */
.dashboard-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f0f0;
    width: 100%;
}

/* ===== TOP BAR ===== */

/* ===== TOP BAR BACK BUTTON ===== */
.topbar-back {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #8a6a6a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
    margin-right: 8px;
}

.topbar-back:hover {
    background: #f5f0f0;
    color: #3d2020;
}

.topbar-back .btn-text {
    display: inline;
}

/* ===== TABLE HEADER ===== */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.table-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #3d2020;
    margin: 0;
}

.btn-primary {
    background: #b34747;
    color: white;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-primary:hover {
    background: #9a3a3a;
}

/* ===== TOP BAR BRAND WITH ADMIN ===== */
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #3d2020;
}

.topbar-brand .topbar-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* ============================================
   RESPONSIVE - ADMIN DASHBOARD
   ============================================ */

@media (max-width: 768px) {
    .topbar-left {
        flex-wrap: wrap;
        gap: 6px;
    }

    .topbar-back .btn-text {
        display: none;
    }

    .topbar-back {
        padding: 6px 10px;
        font-size: 18px;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .topbar-brand {
        font-size: 15px;
    }

    .admin-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .admin-card {
        padding: 14px 10px;
    }

    .admin-card h3 {
        font-size: 13px;
    }

    .admin-card .count {
        font-size: 24px;
    }

    /* Stack table on mobile */
    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        display: block;
        border-bottom: 1px solid #f0e8e8;
        padding: 10px 0;
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 8px;
        border-bottom: none;
        text-align: right;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #4a2a2a;
        text-align: left;
    }

    .admin-table td:last-child {
        border-bottom: none;
    }

    .admin-table td .btn-action {
        font-size: 11px;
        padding: 3px 10px;
    }
}

@media (max-width: 360px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .topbar-right {
        flex-direction: column;
        width: 100%;
    }

    .topbar-right .user-info,
    .topbar-right .logout-form,
    .topbar-right .topbar-btn {
        width: 100%;
        justify-content: center;
    }

    .logout-form button {
        width: 100%;
        justify-content: center;
    }
}
.dashboard-topbar {
    background: #ffffff;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0e8e8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-brand {
    font-size: 20px;
    font-weight: 700;
    color: #3d2020;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.logout-btn {
    background: #fef0f0;
    color: #b34747;
}

.logout-btn:hover {
    background: #fce0e0;
}

.admin-btn {
    background: #f0e8f0;
    color: #6a3a6a;
}

.admin-btn:hover {
    background: #e0d4e0;
}

.logout-form {
    display: inline;
    margin: 0;
}

/* ===== DASHBOARD CONTAINER ===== */
.dashboard-container {
    flex: 1;
    padding: 30px 30px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    margin-bottom: 30px;
}

.welcome-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: #3d2020;
    margin-bottom: 4px;
}

.welcome-sub {
    font-size: 15px;
    color: #8a6a6a;
}

/* ===== CONTENT GRID (Placeholder Cards) ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.content-card {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid #f0e8e8;
    text-align: center;
    transition: all 0.2s ease;
}

.content-card:hover {
    border-color: #c07070;
    transform: translateY(-2px);
}

.content-card .card-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.content-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #3d2020;
    margin-bottom: 4px;
}

.content-card p {
    font-size: 13px;
    color: #8a6a6a;
    margin: 0;
}

/* ===== TABLE WRAPPER ===== */
.content-table-wrapper {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 24px 24px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid #f0e8e8;
}

.content-table-wrapper h3 {
    font-size: 16px;
    font-weight: 600;
    color: #3d2020;
    margin-bottom: 16px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 400px;
}

.dashboard-table thead {
    background: #f5f0f0;
}

.dashboard-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #4a2a2a;
    border-bottom: 2px solid #f0e8e8;
}

.dashboard-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0e8e8;
    color: #3d2020;
}

.dashboard-table tr:hover td {
    background: #fcf7f7;
}

/* ===== BADGES ===== */
.badge {
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge-success {
    background: #e8f4e8;
    color: #2d7a2d;
}

.badge-warning {
    background: #f4f0e8;
    color: #8a7a2d;
}

.badge-danger {
    background: #f4e8e8;
    color: #7a2d2d;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ===== TABLET (768px - 1024px) ===== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-container {
        padding: 24px 24px 30px;
    }

    .dashboard-topbar {
        padding: 12px 24px;
    }
}

/* ===== MOBILE LARGE (480px - 768px) ===== */
@media (max-width: 768px) {
    .dashboard-topbar {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .topbar-left {
        justify-content: center;
    }

    .topbar-brand {
        font-size: 18px;
    }

    .topbar-right {
        justify-content: center;
        gap: 8px;
    }

    .topbar-btn {
        font-size: 13px;
        padding: 6px 14px;
    }

    .dashboard-container {
        padding: 16px 14px 24px;
    }

    .welcome-section h1 {
        font-size: 22px;
    }

    .welcome-sub {
        font-size: 14px;
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .content-card {
        padding: 18px 14px;
    }

    .content-card .card-icon {
        font-size: 28px;
    }

    .content-card h3 {
        font-size: 14px;
    }

    .content-card p {
        font-size: 12px;
    }

    .content-table-wrapper {
        padding: 14px 14px 16px;
    }

    .dashboard-table {
        font-size: 13px;
        min-width: 300px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 8px 10px;
    }
}

/* ===== MOBILE SMALL (0 - 480px) ===== */
@media (max-width: 480px) {
    .dashboard-topbar {
        padding: 10px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .topbar-brand {
        font-size: 16px;
    }

    .topbar-btn {
        font-size: 12px;
        padding: 5px 12px;
    }

    .topbar-btn .btn-text {
        display: inline;
    }

    .dashboard-container {
        padding: 12px 10px 20px;
    }

    .welcome-section h1 {
        font-size: 18px;
    }

    .welcome-sub {
        font-size: 12px;
    }

    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .content-card {
        padding: 14px 10px;
    }

    .content-card .card-icon {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .content-card h3 {
        font-size: 12px;
    }

    .content-card p {
        font-size: 11px;
    }

    .content-table-wrapper {
        padding: 12px 10px 14px;
        border-radius: 8px;
    }

    .content-table-wrapper h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .dashboard-table {
        font-size: 11px;
        min-width: 250px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 6px 8px;
    }

    /* ===== Stack table on mobile ===== */
    .dashboard-table thead {
        display: none;
    }

    .dashboard-table tr {
        display: block;
        border-bottom: 1px solid #f0e8e8;
        padding: 8px 0;
    }

    .dashboard-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 8px;
        border-bottom: none;
        text-align: right;
    }

    .dashboard-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #4a2a2a;
        text-align: left;
    }

    .dashboard-table td:last-child {
        border-bottom: none;
    }
}

/* ===== VERY SMALL (320px) ===== */
@media (max-width: 360px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .topbar-right {
        flex-direction: column;
        width: 100%;
    }

    .topbar-btn {
        justify-content: center;
        width: 100%;
    }

    .logout-form {
        width: 100%;
    }

    .logout-form button {
        width: 100%;
        justify-content: center;
    }
}
/* ===== TOP BAR LOGO ===== */
.topbar-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 4px;
    vertical-align: middle;
    display: inline-block;
}

/* ===== USER INFO IN TOP BAR ===== */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    color: #3d2020;
    white-space: nowrap;
}

.user-icon {
    font-size: 16px;
}

.user-name {
    font-weight: 600;
    color: #3d2020;

}

/* ===== ACTION BUTTONS CONTAINER ===== */
.actions-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.actions-container form {
    display: inline;
    margin: 0;
}

.btn-action {
    padding: 4px 12px;
    border-radius: 4px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-action.btn-edit {
    background: #f0e8e8;
    color: #4a2a2a;
}

.btn-action.btn-edit:hover {
    background: #e0d4d4;
}

.btn-action.btn-delete {
    background: #fef0f0;
    color: #b34747;
}

.btn-action.btn-delete:hover {
    background: #fce0e0;
}

.btn-action.btn-toggle {
    background: #e8f0e8;
    color: #47b347;
}

.btn-action.btn-toggle:hover {
    background: #d4e8d4;
}

/* ===== HOME BUTTON (Styled like Admin button) ===== */
.home-btn {
    background: #e8f0f0;
    color: #3a6a6a;
}

.home-btn:hover {
    background: #d4e8e8;
}


/* ===== SECONDARY BUTTON ===== */
.btn-secondary {
    background: #f5f0f0;
    color: #4a2a2a;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

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

/* ===== SEARCH SECTION ===== */
.search-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px 30px 30px;
    margin-bottom: 30px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid #f0e8e8;
}

.search-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 150px;
}

.search-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a2a2a;
    margin-bottom: 4px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e8dcdc;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #fcfaf9;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: #c07070;
}

.search-btn {
    padding: 10px 28px;
    background: #b34747;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #9a3a3a;
}

/* ===== RESULTS ===== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 20px;
    color: #3d2020;
    margin: 0;
}

.results-count {
    font-size: 14px;
    color: #8a6a6a;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.result-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f0e8e8;
    overflow: hidden;
    transition: all 0.2s ease;
}

.result-card:hover {
    border-color: #c07070;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.result-image {
    height: 180px;
    background: #f5f0f0;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-details {
    padding: 16px 20px 20px;
}

.result-details h3 {
    font-size: 18px;
    color: #3d2020;
    margin-bottom: 6px;
}

.result-address {
    font-size: 13px;
    color: #8a6a6a;
    margin-bottom: 8px;
    display: flex;
    gap: 4px;
}

.result-rating {
    font-size: 13px;
    color: #8a6a6a;
    margin-bottom: 8px;
}

.result-rating .stars {
    color: #f5b342;
}

.result-phone,
.result-website {
    font-size: 13px;
    color: #8a6a6a;
    margin-bottom: 4px;
    display: flex;
    gap: 4px;
}

.result-phone a,
.result-website a {
    color: #b34747;
    text-decoration: none;
}

.result-phone a:hover,
.result-website a:hover {
    text-decoration: underline;
}

.result-maps-link {
    display: inline-block;
    margin-top: 10px;
    color: #b34747;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.result-maps-link:hover {
    text-decoration: underline;
}

/* ===== LOADER ===== */
.loader {
    border: 4px solid #f0e8e8;
    border-top: 4px solid #b34747;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-field {
        flex: 1;
        min-width: auto;
    }

    .search-field[style*="flex: 0 0 auto"] {
        flex: 1 !important;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: 16px;
    }

    .result-card {
        border-radius: 8px;
    }

    .result-image {
        height: 140px;
    }
}

/* ===== SEARCH HEADER ===== */
.search-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.search-header h1 {
    color: #3d2020;
    font-size: 24px;
    margin-bottom: 4px;
}

.search-header p {
    color: #8a6a6a;
    font-size: 14px;
}

/* ===== SEARCH FIELD SIZES ===== */
.search-field {
    flex: 1;
    min-width: 150px;
}

.search-results-field {
    flex: 0 0 120px;
}

.search-button-field {
    flex: 0 0 auto;
}

/* ===== RESULT CARD IMPROVEMENTS ===== */
.result-icon {
    margin-right: 4px;
}

.result-address,
.result-phone,
.result-website {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6a4a4a;
    margin-bottom: 4px;
}

.result-website a {
    color: #b34747;
    text-decoration: none;
    word-break: break-all;
}

.result-website a:hover {
    text-decoration: underline;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #f0e8e8;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: #3d2020;
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: #8a6a6a;
    font-size: 14px;
}

/* ===== PAGINATION ===== */
.pagination-container {
    text-align: center;
    margin-top: 24px;
}

.load-more-btn {
    background: #f5f0f0;
    color: #4a2a2a;
    border: 1px solid #e8dcdc;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.load-more-btn:hover {
    background: #e8dcdc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .search-header {
        flex-direction: column;
    }

    .search-results-field,
    .search-button-field {
        flex: 1;
    }

    .search-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-header h1 {
        font-size: 20px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== CARD CHECKBOX ===== */
.result-card {
    position: relative;
    padding-top: 12px;
}

.card-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.card-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #b34747;
}

/* ===== EXPORT BUTTONS ===== */
.export-btn {
    background: #b34747;
    color: #ffffff;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.export-btn:hover {
    background: #9a3a3a;
}

.select-all-btn {
    background: #f5f0f0;
    color: #4a2a2a;
    padding: 8px 16px;
    border: 1px solid #e8dcdc;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s ease;
    margin-left: 10px;
}

.select-all-btn:hover {
    background: #e8dcdc;
}

/* ===== SERVICE BADGES ===== */
.result-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.service-badge.service-true {
    background: #e8f4e8;
    color: #2d7a2d;
}

.service-badge.service-false {
    background: #f4e8e8;
    color: #7a2d2d;
}

/* ===== PAYMENT BADGES ===== */
.result-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.payment-badge.payment-true {
    background: #e8f0f8;
    color: #2d4a7a;
}

.payment-badge.payment-cash {
    background: #f8f0e8;
    color: #7a5a2d;
}

.payment-badge.payment-false {
    background: #f4e8e8;
    color: #7a2d2d;
}

/* ===== RESULT TYPE ===== */
.result-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6a4a4a;
    margin-bottom: 4px;
}

.result-type i {
    width: 18px;
    color: #b34747;
}

/* ============================================
   LOAD MORE BUTTON - COMPLETE STYLES
   ============================================ */

/* ===== LOAD MORE CONTAINER ===== */
.load-more-container {
    text-align: center;
    margin-top: 28px;
    padding: 20px 0 10px 0;
}

/* ===== LOAD MORE BUTTON ===== */
.load-more-btn {
    background: #ffffff;
    color: #4a2a2a;
    border: 2px solid #e8dcdc;
    padding: 14px 48px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.load-more-btn:hover:not(:disabled) {
    background: #fcf7f7;
    border-color: #b34747;
    box-shadow: 0 4px 16px rgba(180, 60, 60, 0.12);
    transform: translateY(-2px);
}

.load-more-btn:active:not(:disabled) {
    transform: translateY(0px);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover:not(:disabled) i {
    transform: translateY(2px);
}

/* ===== ALL LOADED MESSAGE ===== */
.all-loaded-msg {
    color: #47b347;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 28px;
    background: #f0fef0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d4e8d4;
}

.all-loaded-msg i {
    font-size: 20px;
}

/* ===== LOADING SPINNER INSIDE BUTTON ===== */
.load-more-btn .fa-spinner {
    animation: spin 0.8s linear infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .load-more-btn {
        padding: 12px 32px;
        font-size: 14px;
        width: 100%;
    }

    .all-loaded-msg {
        font-size: 13px;
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .load-more-btn {
        padding: 10px 24px;
        font-size: 13px;
        border-radius: 8px;
    }

    .load-more-btn i {
        font-size: 14px;
    }

    .all-loaded-msg {
        font-size: 12px;
        padding: 10px 16px;
        border-radius: 8px;
    }
}