/**
 * Dashboard styles
 * Combines CSS from snippets 32, 35, 36, 51
 */

/* ==========================================================
 * Snippet 32: Dashboard (Charts, Info boxes, Rankings)
 * ======================================================== */

.dashboard-container {
    width: 100%;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

.info-boxes-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.info-box {
    flex: 1;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}
.info-box h3 {
    margin: 0;
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}
.info-box p {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    color: #000;
}

.chart-container {
    width: 100%;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 50px;
}
.month-navigation {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.month-navigation a {
    text-decoration: none;
    color: #D74709;
    font-weight: bold;
}
.chart-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.dashboard-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.dashboard-col {
    flex: 1;
    min-width: 300px;
}

/* Ranking boxes */
.ranking-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto;
}
.ranking-box h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}
.ranking-table th, .ranking-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}
.ranking-table th {
    background: #f5f5f5;
}
.ranking-table tr:last-child td {
    border-bottom: none;
}
.ranking-position {
    font-weight: bold;
    color: #333;
}


/* ==========================================================
 * Snippets 35 & 36: Search bar (shared by solicitudes & dogs)
 * ======================================================== */

.admin-search-bar {
    background: #f5f5f5;
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}
.admin-search-bar label {
    font-weight: bold;
    white-space: nowrap;
}
.admin-search-bar input[type="text"],
.admin-search-bar select,
.admin-search-bar input[type="date"] {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.admin-search-bar button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.admin-search-bar button:hover {
    background: #eaeaea;
}


/* ==========================================================
 * Snippet 35: Solicitudes (Request inbox)
 * ======================================================== */

.solicitudes-container {
    font-family: Arial, sans-serif;
    margin: 20px 0;
}
.solicitud-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: opacity 0.4s ease;
}
.solicitud-item.completed {
    opacity: 0.5;
}
.solicitud-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    cursor: pointer;
}
.solicitud-avatar {
    margin-right: 10px;
}
.solicitud-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}
.solicitud-dogname,
.solicitud-breed,
.solicitud-color,
.solicitud-email,
.solicitud-date {
    padding: 0 10px;
    flex: 1;
    text-align: center;
    font-weight: bold;
}
.solicitud-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}
.solicitud-actions button {
    border: 1px solid #ccc;
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.solicitud-actions button:hover {
    background: #f0f0f0;
    border-color: #aaa;
}
.solicitud-details {
    padding: 10px 15px;
    background: #fff;
    display: none;
    border-top: 1px solid #ddd;
}
.solicitud-details p {
    margin: 5px 0;
    line-height: 1.4;
}
.solicitud-details a {
    color: #D74709;
    text-decoration: none;
}


/* ==========================================================
 * Snippet 36: Dogs inbox
 * ======================================================== */

.dogs-container {
    font-family: Arial, sans-serif;
    margin: 20px 0;
}
.dog-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: opacity 0.4s ease;
}
.dog-item.completed {
    opacity: 0.5;
}
.dog-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    cursor: pointer;
}
.dog-avatar {
    margin-right: 10px;
}
.dog-avatar img {
    border-radius: 12px;
    width: 60px;
    height: 60px;
    object-fit: cover;
}
.dog-name,
.dog-breed,
.dog-color,
.dog-email,
.dog-date {
    padding: 0 10px;
    flex: 1;
    text-align: center;
    font-weight: bold;
}
.dog-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}
.dog-actions button {
    border: 1px solid #ccc;
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.dog-actions button:hover {
    background: #f0f0f0;
    border-color: #aaa;
}
.dog-details {
    padding: 10px 15px;
    background: #fff;
    display: none;
    border-top: 1px solid #ddd;
}
.dog-details p {
    margin: 5px 0;
    line-height: 1.4;
}
.dog-details a {
    color: #D74709;
    text-decoration: none;
}
.dog-change-history {
    margin-top: 15px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.dog-change-history h3 {
    margin-bottom: 10px;
    font-size: 18px;
}
.dog-change-history ul {
    list-style: none;
    padding-left: 0;
}
.dog-change-history li {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}


/* ==========================================================
 * Sidebar menu styles moved to features/app-shell/app-shell.css
 * ======================================================== */
