/**
 * Dashboard Components CSS
 * Styles for the dashboard UI components
 */

/* Dog Selector */
.dog-selector {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.dog-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #a0855b;
}

.dog-info h5 {
    margin: 0;
    color: #333;
}

.dog-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dog-selector {
        justify-content: center;
        text-align: center;
        margin-bottom: 15px;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
    }

    .d-flex.align-items-center {
        justify-content: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .dog-avatar {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .dog-info h5 {
        font-size: 1rem;
    }

    .dog-info p {
        font-size: 0.8rem;
    }
}

/* Alert Container */
.alert-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    /* Ensure it's above other elements like modals */
}

.glass-alert-fixed {
    position: fixed;
    top: 80px;
    right: 20px;
    left: auto;
    transform: none;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    background-color: rgba(40, 167, 69, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.glass-alert-fixed .btn-close {
    filter: invert(1);
    /* Invert the close button color for better visibility on dark background */
}

/* Dog Item Styles */
.dog-item {
    border-radius: 20px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dog-spinner-img {
    object-fit: cover;
}

/* Allow text to display fully */
#selected-dog span {
    max-width: 200px;
    /* Increased from 150px */
    display: inline-block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dog list modal styles */
.list-group-item.glass-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.list-group-item.glass-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.action-buttons .glass-button {
    padding: 0.375rem 0.375rem;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}