/* Container */
.dha-dogs-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.dha-dogs-container h2 {
    margin: 0;
    font-size: 18px;
}

/* Table Layout */
.dha-dogs-table {
    width: 100%;
}

/* .dha-dog-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
 */
.dha-dog-content {
    display: grid;
    grid-template-columns: 56px max-content;
    gap: 16px;
    align-items: start;
}

.dha-table-header {
    display: grid;
    grid-template-columns: 60px 1fr 100px;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
}

.dha-dog-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: start;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

/* Photo styles */
.dha-dog-photo {
    width: 56px !important;
    height: 56px !important;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 0 !important;
}

.dha-dog-placeholder {
    width: 56px;
    height: 56px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info styles */
.dha-dog-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3338;
    margin-bottom: 4px;
}

.dha-dog-details {
    font-size: 16px;
    color: #666;
}

/* Action Buttons */
.dha-col-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.dha-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.dha-btn:hover {
    opacity: 0.9;
}

.dha-btn .dashicons {
    color: white;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dha-edit-btn {
    background-color: #3090ff;
}

.dha-vet-btn {
    background-color: #7ac143;
}

.dha-vax-btn {
    background-color: #ffce59;
}

.dha-remove-btn {
    background-color: #d63638;
}

/* Tablet Layout */
@media (max-width: 1024px) and (min-width: 769px) {
    .dha-table-header {
        display: none;
    }

    .dha-dog-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .dha-dog-content {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 16px;
        align-items: start;
    }

    /* .dha-dog-content {
        display: flex;
        gap: 16px;
    } */

    .dha-col-pic {
        flex: 0 0 80px;
    }

    .dha-col-info {
        flex: 1;
    }

    .dha-dog-photo {
        width: 80px !important;
        height: 80px !important;
    }

    .dha-dog-placeholder {
        width: 80px;
        height: 80px;
    }

    /* .dha-col-actions {
        justify-content: stretch;
        margin-top: 8px;
    } */

    .dha-col-actions {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }

    /* .dha-btn {
        flex: 1;
        width: auto;
        height: 36px;
        padding: 0 16px;
        gap: 6px;
    } */

    .dha-btn {
        min-width: 120px;
        height: 44px;
        padding: 0 16px;
        border-radius: 6px;
        font-size: 14px;
    }

    .dha-btn::after {
        display: inline;
        color: white;
        font-size: 14px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    }

    .dha-btn .dashicons {
        margin-right: 8px;
    }

    .dha-add-btn .dashicons {
        margin-right: 0;
    }

    .dha-edit-btn::after {
        content: "Edit";
    }

    .dha-vet-btn::after {
        content: "Vet";
    }

    .dha-vax-btn::after {
        content: "Vaccines";
    }

    .dha-remove-btn::after {
        content: "Remove";
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .dha-table-header {
        display: none;
    }

    .dha-dogs-table {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* .dha-dog-row {
        display: grid;
        grid-template-columns: 80px max-content;
        gap: 4px;
        padding: 12px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border: none;
    } */

    .dha-list-header {
        display: flex;
        /* flex-direction: column; */
        gap: 36%;
    }

    .dha-dog-row {
        display: flex;
        flex-direction: column;
        padding: 16px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border: none;
    }

    .dha-dog-content {
        display: grid;
        grid-template-columns: 56px auto;
        gap: 16px;
        align-items: start;
    }

    /* .dha-col-pic {
        grid-row: span 2;
    } */

    .dha-dog-photo,
    .dha-dog-placeholder {
        width: 56px;
        height: 56px;
        border-radius: 8px;
        margin: 0;
    }

    .dha-col-info {
        margin: 0;
    }

    .dha-dog-name {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .dha-dog-details {
        color: #666;
        font-size: 14px;
    }

    /* .dha-col-actions {
        display: flex;
        justify-content: stretch;
        gap: 8px;
        margin-top: 8px;
        justify-content: flex-end;
    } */

    .dha-dogs-table .dha-col-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 20px;
        width: 100%;
    }

    .dha-btn {
        flex: 1;
        width: auto;
        height: 36px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: white;
        border-radius: 4px;
    }

    .dha-btn::after {
        display: inline;
    }

    .dha-edit-btn::after {
        content: "Edit";
    }

    .dha-vet-btn::after {
        content: "Vet";
    }

    .dha-vax-btn::after {
        content: "Vaccines";
    }

    .dha-remove-btn::after {
        content: "Remove";
    }

    .dha-btn .dashicons {
        font-size: 16px;
        color: white;
    }

    .dha-add-btn {
        height: 36px !important;
    }
}

@media (max-width: 480px) {

    .dha-add-btn {
        /* gap: 8px; */
        width: 100% !important;
        height: 36px !important;
        min-height: 36px !important;
    }

    .dha-list-header {
        flex-direction: column;
    }
}