body {
    background: #181A18;
    color: white;
    font-family: sans-serif;
    display: flex;
    justify-content: left;
    flex-direction: row;
    gap: 30px;
    align-items: top;
    min-height: 100vh;
    margin: 25px;
}

.dashboard {
    background: #282828;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    flex-direction: row;
    
    /*box-shadow: 0 10px 20px rgba(0,0,0,0.3); */
}

.silentContainer {
    background: #282828;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    font-weight: 800;
}

.btn, button {
    background: #3d423d;
    color: #afb5af;
    font-weight: 800;
    border: none;
    padding: 14px 24px;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    margin: 12px;
    width: 80%;
    font-size: 1.2rem;
    transition: all 0.3s ease-out;
}

.btn2, button {
    background: #3d423d;
    color: #afb5af;
    font-weight: 800;
    border: none;
    padding: 14px 24px;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    margin: 12px;
    width: 80%;
    font-size: 1.2rem;
    transition: all 0.3s ease-out;
}

a.btn {
    
    text-decoration: none;   /* Removes the ugly blue underline */
    text-align: center;      /* Centers the text */
    box-sizing: border-box;  /* Keeps the width perfect */
}

a.btn2 {

    border-radius: 3px;
    text-decoration: none;   /* Removes the ugly blue underline */
    text-align: center;      /* Centers the text */
    box-sizing: border-box;  /* Keeps the width perfect */
}

.btn:hover:not(disabled){
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease-out;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #1e293b;
}

.btn2:hover:not(disabled){
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.grayText {
    color: #afb5af;
    width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-family: Gelasio, serif;
    font-optical-sizing: auto;
    font-weight:  500;
    font-style: normal;
    font-size: 2.5rem;
}

.logo {
    display: flex;
    justify-content: center; 
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 20px rgb(0,0,0);
    transform: translateY(-15px);
}

#mainDashboard {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
}

#listingsDashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#adminPanelDashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#socialMediaLinks {
    /* 1. Keep it 'block' or 'flex' at all times so it can animate */
    display: flex; 
    flex-direction: column;
    align-items: center;
    
    /* 2. The Hiding Trick */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none; /* Prevents clicking while hidden */
    
    /* 3. The Smoothness */
    transition: max-height 0.4s ease, opacity 0.3s ease;
    
    /* 4. Fix the alignment (No more 70% or translateX) */
    width: 100%;
}

#socialMediaLinks.expanded {
    max-height: 160px;    /* Set this to be taller than your buttons */
    opacity: 1;
    pointer-events: auto; /* Makes buttons clickable again */
    margin-top: 10px;     /* Optional: adds a little breathing room */
}

#facebookButton {
    background: #1877F2;
    color: #ffffff;
    width: 60% !important; 
    display: block; /* Ensures they respect the width */
    margin: 8px auto; /* Centers them */
    transform: translateX(15px)
}

#instagramButton {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #ffffff;
    width: 60% !important; 
    display: block; /* Ensures they respect the width */
    margin: 8px auto; /* Centers them */
    transform: translateX(15px)
}


/* 1. The Base State (Hidden/Small) */
#socialMediaLinks::before {
    content: "";
    position: absolute;
    
    /* Position it exactly where you want it horizontally */
    left: 80px; 
    top: 465px; 
    
    width: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;

    /* Start at zero height */
    height: 0; 
    opacity: 0;
    transition: height 0.4s ease, opacity 0.3s ease;
    z-index: 1; /* Ensures it stays above the background */
}

/* 2. The Active State (Grown) */
#socialMediaLinks.expanded::before {
    height: 150px; /* Or a pixel value like 150px */
    opacity: 1;
}

/* This is the div holding your buttons */

.nav-button-row {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Centers the pair */
    gap: 20px;              /* The exact space between the buttons */
    width: 100%;            /* Spans the width of the dashboard */
    margin-top: 20px;       /* Pushes them away from the Upload button */
}

#adminPanelToHome, #adminPanelToListings {
    display: flex;
    flex-direction: row; /* Change this to row! */
    align-items: center;
    justify-content: center;
    
    /* Use width instead of max-width to force a size */
    flex: 0.4;
    
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.standardLink {
    background: #3d423d;
    color: #afb5af;
    font-weight: 800;
    
    /* THE CENTERING MAGIC */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* PROPERTIES */
    width: 80%;
    height: 55px;
    margin: 14px auto;
    font-size: 1.4rem;
    
    border-radius: 3px;
    text-decoration: none; 
    transition: all 0.3s ease-out;
}

.standardLink:hover:not(disabled){
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.standardLink:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #1e293b;
}

.listingCard {
    
    position: relative;
    /* 1. SEPARATE COLOR: Pick a slightly lighter or different dark shade */
    background-color: #282828; 
    
    /* 2. SPACING: margin creates the gap BETWEEN cards */
    margin: 15px;
    padding: 20px;
    
    /* 3. VISUAL POP: border and shadow help it "lift" off the background */
    border: 1px solid #3d423d;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    
    /* 4. SIZING: ensures they don't stretch to full width */
    width: 300px;
    max-width: 300px;

    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;


    max-height: 385px;
    transition: all ease-in 0.3s;

    
}

.revealContent {
    opacity: 0;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    transform: translateX(45px);
}

/* Add a hover effect to make them feel interactive */
.listingCard:hover {
    max-width: 650px;
    width: 650px;

    
}

.listingCard:hover .revealContent {
    opacity: 1;

}
.listingCard::after {
    content: "";
    position: absolute;
    
    /* FIX 1: Lock it to the edge of the first 300px */
    left: 340px; 
    
    top: 10%; 
    bottom: 10%;
    width: 1px;
    background-color: #3d423d;
    
    /* FIX 2: Remove translateX(-50%) because we aren't centering anymore */
    opacity: 0;
    transform: scaleY(0.8); 
    
    transition: opacity 0.1s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10; /* Make sure it sits on top of the content */

}

/* 4. REVEAL: Show on hover */
.listingCard:hover::after {
    opacity: 1;
    transform: scaleY(1); /* Grow to full height */
}

#listingsDashboard {
    display: flex;
    flex-direction: column; /* Keep title and grid stacked vertically */
    align-items: center;
    justify-content: center;
}

#carGrid {
    display: grid;
    grid-template-columns: 1fr;    /* Force cars to sit side-by-side */
    justify-content: center;
    justify-items: center;
    gap: 40px;             /* Space between cards */
    width: 100%;
    margin-top: 30px;

}

.card-price {
    font-size: 1.5rem;
    color: #4caf50; 
    font-weight: 800;
    margin: 10px 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exactly two equal columns */
    gap: 12px;                     /* Space between the items */
    margin-top: 15px;
    padding: 15px;
    border-top: 1px solid #3d423d; /* Separates specs from the price */
    width: 100%;
    box-sizing: border-box;        /* Ensures padding doesn't add to width */
}

.specs-grid span {
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* Aligns icon and text to the left of their cell */
    gap: 8px;
    font-size: 0.85rem;           /* Slightly smaller font to ensure fit */
    color: #afb5af;
    white-space: nowrap;          /* Prevents text from wrapping to a 3rd line */
}

.spec-tag {
    background: #3d423d; /* Lighter than the card bg */
    padding: 5px 10px;
    border-radius: 20px; /* Pill shape */
    font-size: 0.8rem;
    color: #ffffff;
}

#inputContainer {
    max-width: 600px;
    display: flex;
    flex-direction: column; /* Stacks inputs vertically */
    align-items: center;    /* Centers them horizontally */
    margin-left: auto;
    margin-right: auto;
}

/* The Base Input Style */
.input {
    background: rgba(40, 40, 40, 0.7); /* Translucent dark */
    backdrop-filter: blur(10px);       /* Frosty glass effect */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

/* When you click/focus on the input */
.input:focus {
    border-color: #4caf50; /* 3M Green */
    background: rgba(50, 50, 50, 0.9);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    transform: translateY(-1px); /* Subtle lift effect */
}

/* Placeholder (Ghost Text) */
.input::placeholder {
    color: rgba(175, 181, 175, 0.4);
    font-style: italic;
    font-size: 0.9rem;
}

/* Fix for the Dropdown (Select)*/
.select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234caf50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
}

.about-text {
    color: #afb5af;
    line-height: 1.6;
    max-width: 700px;
    margin: 20px auto;
    font-size: 1.2rem;
}

.pillars-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pillar {
    background: #1e1f1e;
    padding: 20px;
    border-radius: 12px;
    width: 200px;
    transition: transform 0.3s ease;
}

.pillar:hover {
    transform: translateY(-4px);

}

.pillar span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.spacer {
    height: 70px;
}

#aboutUsTopSpacer {
    height: 5px;
}

.grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 25px; /* More space between buttons */
    padding: 30px;
    background-color: #1a1a1a; /* Dark background to make buttons pop */
    border-radius: 6px;
}

.grid-card {
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 95%;
    min-height: 120px;
    padding: 15px;

    font-size: 1.1rem;
    line-height: 1.3;
    text-transform: capitalize;

    background: #3a3a3a;
    color: #f0f0f0;
    border: 3px solid #3a3a3a; 
    border-radius: 6px;
}

.grid-card:hover {
    transform: translateY(-3px);
    border-color: #4caf50;
}

#decipherIdDashboard {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#submitIdButton {
    width: 50%
}

#submitIdButton:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

#decipherToHome {
    width: 50%;
} 

.indexCard {
    display: grid;
    width: 300px;
    min-height: 400px;
    background-color: #2e2e2e;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 3px solid #2e2e2e;

    border-radius: 3px;

    transition: all .2s ease-out;
}

.indexCard:hover {
    transform: translateY(-4px);
    border: 3px solid #4caf50;
}

#recentActivityList {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    padding: 20px 0;
}

.deleteButton{
    background: #3d423d;
    color: #afb5af;
    font-weight: 800;
    
    /* THE CENTERING MAGIC */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* PROPERTIES */
    width: 20px;
    height: 25px;
    margin: 0px auto;
    font-size: 1rem;
    
    border-radius: 3px;
    transition: all 0.3s ease-out;
}

.deleteButton:hover{
    transform: translateY(-2px);
    filter: brightness(1.1);
}