﻿/* General Container */
.cso-catalog-container {
    display: flex;
    gap: 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sidebar Filters */
.cso-filters {
    min-width: 260px;
    background: #fff;
    padding: 0;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
    overflow: hidden;
}

.cso-filters h2 {
    background: #ff7713;
    color: #fff;
    padding: 15px;
    margin: 0;
    text-align: center;
    font-size: 18px;
    letter-spacing: 1px;
}

.cso-filters form {
    padding: 20px;
}

.cso-filters h3 {
    color: #333;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-left: 4px solid #ff7713;
    padding-left: 10px;
}

.cso-filters label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.2s;
    color: #666;
    font-size: 14px;
}

.cso-filters label:hover {
    color: #ff7713;
}

.cso-search-group {
    padding: 20px;
}

.cso-filters input[type="radio"],
.cso-filters input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #ff7713;
}

.cso-filters .button {
    display: block;
    width: 100%;
    text-align: center;
    background: #eee;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: 600;
    transition: background 0.3s;
}

.cso-filters .button:hover {
    background: #ddd;
}

/* jQuery UI Slider Styling */
.ui-slider {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    position: relative;
    border: none;
}

.ui-slider-range {
    position: absolute;
    height: 100%;
    background: #ff7713;
    border-radius: 3px;
    top: 0;
}

.ui-slider-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #ff7713;
    border-radius: 50%;
    top: -6px;
    margin-left: -9px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, background 0.2s;
    outline: none !important;
}

.ui-slider-handle:hover, .ui-slider-handle:active {
    background: #ff7713;
    transform: scale(1.1);
}

.age-inputs {
    font-weight: 600;
}

/* Dogs Grid */
.cso-dogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: start;
}

/* Dog Card */
.dog-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-align: center;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.dog-card .status-banner {
    position: absolute;
    top: 12px;
    left: 0;
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 0 4px 4px 0;
    z-index: 2;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.dog-card .status-banner.available { background: #28a745; }
.dog-card .status-banner.reserved { background: #ffc107; color: #333; }
.dog-card .status-banner.adopted { background: #6c757d; }
.dog-card .status-banner.disable { background: #343a40; }

.dog-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s;
}

.dog-card:hover img {
    transform: scale(1.1);
}

.dog-card h3 {
    margin: 15px 15px 5px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.dog-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.dog-card h3 a:hover {
    color: #ff7713;
}

.dog-card .ref {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dog-card .meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    padding: 0 15px;
}

.dog-card .attrs {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f5f5f5;
    background: #fafafa;
    padding: 12px 0;
    font-size: 11px;
    color: #555;
}

.dog-card .attrs span {
    flex: 1;
    border-right: 1px solid #eee;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

a.cso-btn-back {
    background: #f16621;
    color: white!important;
}
a.cso-btn-back:hover {
    color: white
}

.cso-progress-bar {
    width: 40px;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.cso-progress-fill {
    height: 100%;
    background: #ff7713;
}

.cso-emoji {
    font-size: 16px;
}

.dog-card .attrs span:last-child {
    border-right: none;
}

/* Single Dog View */
.cso-single-dog-view {
    /* background: #fff; */
    padding: 0;
    margin-bottom: 50px;
}

.cso-details {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.cso-main-col {
    flex: 2;
}

.cso-side-col {
    flex: 1;
}

.cso-gallery-main img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cso-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.cso-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: border 0.2s;
}

.cso-thumbnails img:hover,
.cso-thumbnails img.active {
    border-color: #ff7713;
}

.cso-info-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.cso-info-box h2 {
    margin-top: 0;
    color: #ff7713;
}

.cso-info-box p {
    margin: 8px 0;
    font-size: 14px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 5px;
}

.cso-cta-box {
    margin-top: 20px;
    background: #28a745; /* Default Available */
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.cso-cta-box.cso-cta-available { background: #28a745; }
.cso-cta-box.cso-cta-reserved { background: #ffc107; color: #333; }
.cso-cta-box.cso-cta-reserved h3 { color: #333; }
.cso-cta-box.cso-cta-adopted { background: #6c757d; }

.cso-btn-info {
    background: #17a2b8 !important;
    color: #fff !important;
}

.cso-cta-box h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
}

.cso-cta-box a {
    display: inline-block;
    /* background: #fff; */
    /* color: #28a745; */
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: transform 0.2s;
    font-size: 12px;
    max-width: 250px;
}

.cso-cta-box a:hover {
    transform: scale(1.05);
}

/* Admin Styles */
.dog-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s;
}

.dog-thumb:hover {
    transform: scale(3);
    z-index: 10;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.cso-edit-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.cso-edit-main {
    flex: 3;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
}

.cso-edit-side {
    flex: 1;
}

.cso-edit-box {
    background: #fff;
    padding: 15px;
    border: 1px solid #ccd0d4;
    margin-bottom: 20px;
}

.cso-edit-box h2 {
    margin-top: 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cso-edit-box p {
    margin: 10px 0;
}

.cso-edit-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.cso-edit-box select,
.cso-edit-box input {
    width: 100%;
}

.cso-edit-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cso-edit-gallery-item {
    width: 120px;
    border: 1px solid #ddd;
    padding: 5px;
    background: #f9f9f9;
    cursor: move;
    position: relative;
}

.cso-delete-img {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    display: block;
}

.cso-edit-gallery-item .cso-delete-img {
    display: block;
}

.cso-upload-progress {
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    margin-bottom: 8px;
    font-size: 13px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.cso-upload-progress span {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.cso-upload-progress .cso-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.cso-upload-progress .cso-progress-fill {
    height: 100%;
    background: #27ae60;
    transition: width 0.3s;
}

.cso-edit-gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.cso-edit-gallery-item label {
    display: block;
    text-align: center;
    font-size: 10px;
    margin-top: 5px;
}

.cso-main-label {
    background: #ff7713;
    color: #fff;
    border-radius: 3px;
}

.cso-back-btn, .cso-view-btn {
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    background: #eee;
    color: #333;
    padding: 5px 10px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 10px;
}

.cso-back-btn:hover, .cso-view-btn:hover {
    background: #ddd;
}

.cso-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.cso-cta-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    margin-top: 10px; /* Overwrite the 15px margin-top if needed */
}

.cso-cta-buttons a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cso-cta-subgroup {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.cso-btn-wa {
    background: #25d366 !important;
    color: #fff !important;
}

.cso-btn-call {
    background: #007bff !important;
    color: #fff !important;
}

.cso-cta-text {
    margin-top: 15px;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    width: 100%;
}

.cso-cta-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    border: none !important;
}

.cso-mobile-only {
    display: none;
}

.cso-desktop-only {
    display: block;
}

.cso-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
    justify-content: center;
}

.cso-breadcrumbs a {
    color: #ff7713;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.cso-breadcrumbs a:hover {
    color: #e66a11;
}

.cso-paw-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.cso-separator {
    color: #ccc;
    font-weight: normal;
}

.cso-current-dog {
    color: #333;
    font-weight: 600;
}

/* Admin Frontend Styles */
.cso-admin-frontend {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin-top: 50px;
}

.cso-admin-nav {
    margin-bottom: 30px;
    border-bottom: 2px solid #ff7713;
    padding-bottom: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cso-nav-btn {
    text-decoration: none;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    border-radius: 5px 5px 0 0;
    font-weight: 600;
    transition: all 0.3s;
}

.cso-nav-btn:hover {
    background: #e0e0e0;
}

.cso-nav-btn.active {
    background: #ff7713;
    color: #fff;
}

.cso-admin-wrap {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.cso-admin-wrap h1 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    flex-direction: column;
}

.cso-admin-filters {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.cso-admin-filters h3 {
    width: 100%;
    margin-top: 0;
    font-size: 18px;
    color: #ff7713;
    margin-bottom: 15px;
}

.cso-admin-filters label {
    font-weight: 600;
    font-size: 13px;
    color: #666;
}

.cso-admin-filters select,
.cso-admin-filters input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.cso-admin-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cso-admin-btn:hover {
    background: #ddd;
    color: #000;
}

.cso-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.cso-edit-link {
    color: #ff7713;
    text-decoration: none;
    font-weight: 600;
}

.cso-edit-link:hover {
    text-decoration: underline;
    color: #e66a11;
}

.cso-btn-primary {
    background: #ff7713;
    color: #fff;
}

.cso-btn-primary:hover {
    background: #e66a11;
    color: #fff;
}

.cso-admin-table-container {
    overflow-x: auto;
}

.cso-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.cso-admin-table th,
.cso-admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.cso-admin-table th {
    background: #f8f8f8;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.cso-admin-table tr:hover {
    background: #fcfcfc;
}

.cso-admin-form h2 {
    font-size: 20px;
    color: #ff7713;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.cso-admin-form .form-table th {
    width: 200px;
    padding: 15px 0;
    vertical-align: top;
    text-align: left;
    font-weight: 600;
}

.cso-admin-form input[type="text"],
.cso-admin-form input[type="date"],
.cso-admin-form select,
.cso-admin-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

@media (max-width: 768px) {
    .cso-admin-wrap {
        padding: 15px;
    }
    .cso-admin-wrap h1 span  {
        font-size: 15px;
        line-height: 20px;
    }
    .cso-admin-wrap h1 span b {

        display: block;
        font-size: 25px;
        line-height: 30px;
    }
    .cso-edit-container {
        flex-direction: column;
    }
    .cso-edit-main, .cso-edit-side {
        width: 100%;
        flex: none;
        overflow: hidden;
    }
    .cso-admin-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .cso-admin-form .form-table th {
        width: 100%;
        display: block;
        padding-bottom: 5px;
    }
    .cso-admin-form .form-table td {
        display: block;
        width: 100%;
    }
    .cso-admin-table th:nth-child(4),
    .cso-admin-table td:nth-child(4),
    .cso-admin-table th:nth-child(5),
    .cso-admin-table td:nth-child(5),
    .cso-admin-table th:nth-child(6),
    .cso-admin-table td:nth-child(6) {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cso-mobile-only {
        display: block;
        width: 100%;
    }
    .cso-desktop-only {
        display: none;
    }
    .cso-cta-subgroup {
        flex-direction: column;
    }
    .cso-cta-buttons a {
        width: 100%;
        margin-top: 5px !important;
        max-width: 150px;
    }
}

@media (max-width: 991px) {
    .cso-dogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cso-catalog-container {
        flex-direction: column;
    }
    .cso-filters {
        width: 100%;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    .cso-filters form {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        align-items: flex-start;
    }
    .filter-group {
        flex: 1;
        min-width: 150px;
    }
    .cso-filters h3 {
        margin-top: 0;
    }
    .cso-details {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .cso-dogs-grid {
        grid-template-columns: 1fr;
    }
    .cso-filters form {
        flex-direction: column;
    }
    .cso-single-dog-view {
        padding: 0;
    }
}
