/* MatrixPets Fire Theme – Modern Layout */

/* Reset-ish */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.mp-body {
    font-family: Verdana, Arial, sans-serif;
    background: #ffffff;
    color: #000000;
}

/* Overall page wrapper */
.mp-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER / NAVBAR -------------------------------------------------------- */

.mp-header {
    background: #2e0e85; /* topAndBottomBG */
    color: #ffffff;
    padding: 0.75rem 1rem;
}

.mp-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mp-logo img {
    max-height: 56px;
    display: block;
}

/* Top nav */
.mp-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mp-nav-main {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mp-nav-item > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
}

.mp-nav-item > a:hover {
    text-decoration: underline;
}

/* Dropdowns */
.mp-has-dropdown {
    position: relative;
}

.mp-has-dropdown .mp-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2e0e85;
    min-width: 160px;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
    z-index: 100;
}

.mp-has-dropdown:hover .mp-dropdown {
    display: block;
}

.mp-dropdown li {
    list-style: none;
}

.mp-dropdown a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

.mp-dropdown a:hover {
    background: #4630a3;
}

/* "Join now" button */
.mp-nav-cta .mp-button {
    background: #ff6600;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: bold;
}

.mp-nav-cta .mp-button:hover {
    opacity: 0.9;
}

/* LAYOUT: SIDEBAR + MAIN ------------------------------------------------- */

.mp-layout {
    max-width: 1100px;
    margin: 1rem auto 2rem;
    display: flex;
    gap: 1rem;
}

/* Sidebar */
.mp-sidebar {
    width: 230px;
    background: #2e0e85; /* menuColor */
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
}

.mp-sidebar-section + .mp-sidebar-section {
    margin-top: 1rem;
}

/* Make the legacy HTML look a bit nicer inside sidebar */
.mp-sidebar a {
    color: #ffffff;
    text-decoration: underline;
}

.mp-sidebar p,
.mp-sidebar font {
    font-size: 0.85rem;
}

/* Search form */
.mp-sidebar input[type="text"],
.mp-sidebar input[type="submit"],
.mp-sidebar button,
.mp-sidebar select,
.mp-sidebar textarea {
    font-size: 0.8rem;
    padding: 2px 4px;
}

/* Main content */
.mp-main {
    flex: 1;
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;   /* tableOutline */
    border-radius: 8px;
    padding: 1rem 1.25rem;
    min-height: 400px;
}

/* Links */
a {
    color: #003399; /* mainlinkColor */
}

a:hover {
    text-decoration: underline;
}

/* Footer --------------------------------------------------------------- */

.mp-footer {
    background: #2e0e85; /* topAndBottomBG */
    color: #ffffff;
    margin-top: auto;
}

.mp-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.8rem;
}

.mp-footer-inner a {
    color: #ffffff;
    text-decoration: underline;
}

/* Utility */
.mp-center {
    text-align: center;
}

/* Adoption list modern styles */
.pet-adopt-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 15px;
}

.pet-adopt-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 10px auto;
}

.pet-adopt-name {
    font-weight: bold;
    font-size: 1.2rem;
}

.pet-adopt-species {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 8px;
}

.pet-adopt-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* --------------------------------------------------
   MatrixPets Modern Panel Grid
-------------------------------------------------- */

.home-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* --------------------------------------------------
   Public Adoption List Styles (listpets.php)
-------------------------------------------------- */

.pet-adopt-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 15px;
}

.pet-adopt-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 10px auto;
}

.pet-adopt-name {
    font-weight: bold;
    font-size: 1.2rem;
}

.pet-adopt-species {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 8px;
}

.pet-adopt-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

/* --------------------------------------------------
   Item List Styles (listitems.php)
-------------------------------------------------- */

.item-card {
    text-align: center;
    padding: 15px;
}

.item-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
}

.item-info {
    margin-bottom: 10px;
}
.item-name {
    font-weight: bold;
}
.item-qty {
    font-size: 0.9rem;
    opacity: 0.8;
}
.item-view {
    margin-top: auto;
}

/* --------------------------------------------------
   Stats Panel (stats.php)
-------------------------------------------------- */

.mp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mp-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--lineLight);
}
.mp-list li:last-child {
    border-bottom: none;
}

/* Adoption List */
.pet-adopt-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 15px;
}

.pet-adopt-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 10px auto;
}

.pet-adopt-name {
    font-weight: bold;
    font-size: 1.2rem;
}

.pet-adopt-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    
    
}

/* ADMIN BUTTON IN SIDEBAR */
.admin-button {
    display: block;
    margin-top: 8px;
    padding: 6px 0;
    background: #660000;
    color: #ffcc00 !important;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
}

.admin-button:hover {
    background: #880000;
    color: #fff200 !important;
}

.admin-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-list li {
    padding: 6px 0;
}

.admin-list li a {
    text-decoration: none;
    color: var(--textColor);
    font-weight: bold;
}

.admin-list li a:hover {
    color: var(--accentColor);
}