
/* SCALABLE */
:root {
    --cream: #fffaf3;
    --mint: #f7ffe8;
    --orange: #f2b05e;
    --orange-light: #e3c27d;
    --brown: #5a4633;
    --pink: #ffe0e8;
    --pink-dark: #ffccd8;
    --peach: #ffb88c;
    --shadow-soft: 0 3px 6px rgba(0,0,0,0.15);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
}

/* RESPONSIVE GRID LAYOUT */
@media (max-width: 1100px) {
    body {
        flex-direction: column;
    }

    .column1, .column2, .column3 {
        width: 100% !important;
        padding: 20px;
    }

    #nav ul li button {
        font-size: 22px;
    }
}

/* UNIVERSAL CARD */
.card {
    background-color: var(--mint);
    border: 3px solid var(--orange-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-medium);
}

/* UNIVERSAL BUTTON */
.btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    transition: 0.2s ease;
    box-shadow: var(--shadow-soft);
    color: var(--brown);
}

.btn-pink {
    background-color: var(--pink);
}

.btn-pink:hover {
    background-color: var(--pink-dark);
    transform: translateY(-2px);
}

.btn-orange {
    background-color: var(--orange);
    color: white;
}

.btn-orange:hover {
    background-color: #e09a4a;
    transform: translateY(-2px);
}

/* UNIVERSAL TABLE COMPONENT */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff7e6;
    border: 3px solid var(--orange-light);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.table th {
    background-color: var(--pink);
    padding: 14px;
    font-size: 20px;
    color: var(--brown);
}

.table td {
    padding: 14px;
    font-size: 18px;
    color: var(--brown);
    text-align: center;
    border-bottom: 1px solid #f0d9b5;
}

.table tr:hover {
    background-color: #fff2d9;
}


/* GLOBAL */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #fffaf3; /* soft cream */
    font-family: 'Trebuchet MS', sans-serif;
    color: #5a4633;
}
/* LAYOUT */
body {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* NAVIGATION */
.column1 {
    width: 22%;
    background-color: #f7ffe8; /* pastel mint */
    border-right: 3px solid #e3c27d;
    padding-top: 20px;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

#nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#nav ul li {
    padding: 12px 30px;
}

#nav ul li button {
    width: 100%;
    font-size: 26px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background-color: #ffe0e8; /* soft pink */
    color: #5a4633;
    cursor: pointer;
    transition: 0.2s ease;
}

#nav ul li button:hover {
    background-color: #ffccd8;
    transform: scale(1.03);
}




/* CENTER CONTENT */
.column2 {
    width: 50%;
    padding: 20px;
}

/* TOP BAR */
#topBar {
    background-color: #ffd7e1;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

#topBar button {
    background-color: #ffe9f0;
    border: 2px solid #e3c27d;
    padding: 10px 18px;
    border-radius: 8px;
    margin-right: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

#topBar button:hover {
    background-color: #ffdae6;
    transform: scale(1.05);
}

.welcome-message {
    text-align: center;
    font-size: 22px;
    color: #5a4633;
    margin-top: 10px;
}

/* CURRENCY DISPLAY */
#currency ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 22px;
    text-align: center;
}

#currency ul li {
    margin: 8px 0;
}

/* CLICKER IMAGE */
#cake button {
    display: block;
    margin: 20px auto;
    width: 55%;
    background: none;
    border: none;
    cursor: pointer;
}

#cake button img {
    width: 100%;
    transition: 0.15s ease;
    image-rendering: pixelated;
    animation: cakePulse 1.4s ease-in-out infinite;

}

#cake button img:hover {
    transform: scale(1.03);
}

#cake button img:active{
    transform: translateY(4px);
}

@keyframes cakePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* AUTO BAKER */
#autoBakeIndicator {
    font-size: 20px;
    color: #b06f2a;
    text-align: center;
    margin-top: 10px;
    animation: bakePulse 1.8s ease-in-out infinite;
}

@keyframes bakePulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}


/* STATS PANEL */
.column3 {
    width: 28%;
    padding: 20px;
}

#stats {
    background-color: #f7ffe8;
    border: 3px solid #e3c27d;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#stats h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #b06f2a;
}

#stats h2 {
    margin-top: 20px;
    margin-bottom: 8px;
    color: #b06f2a;
}

#stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#stats ul li {
    margin: 6px 0;
    font-size: 18px;
}

/* SELL PAGE */
#sellSect {
    background: #fff7ec; 
    border: 2px solid #f3d3b3; 
    border-radius: 14px;
    padding: 20px;
    width: 260px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-family: "Trebuchet MS", sans-serif;
}

#sellSect p {
    font-size: 18px;
    color: #8a5a3b; /* warm chocolate tone */
    margin: 10px 0;
}

/* SELL BUTTON */
#sell-button {
    background: #ffb88c; /* soft peach */
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 18px;
    color: #5a3b2e;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* BUTTON HOVER */
#sell-button:hover {
    background: #ffa66f;
    transform: translateY(-2px);
}

/* BUTTON ACTIVE */
#sell-button:active {
    transform: translateY(1px);
    background: #ff9a5c;
}

/* PRESTIGE PAGE */
.prestige-container {
    background: #fff7e6;
    border: 3px solid #e3c27d;
    border-radius: 14px;
    padding: 30px;
    width: 420px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.prestige-container h1 {
    font-size: 34px;
    color: #b06f2a;
    margin-bottom: 20px;
}

.prestige-info {
    font-size: 20px;
    margin: 12px 0;
}

.prestige-info strong {
    color: #b06f2a;
}

.prestige-btn {
    background: #d48c3c;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 20px;
    border-radius: 10px;
    margin-top: 25px;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.prestige-btn:hover:not(:disabled) {
    background: #e09a4a;
    transform: scale(1.05);
}

.prestige-btn:disabled {
    background: #c7b08a;
    opacity: 0.6;
    cursor: not-allowed;
}

.prestige-warning {
    margin-top: 25px;
    font-size: 15px;
    color: #7a5f45;
    line-height: 1.4;
}

.prestige-helper {
    margin-top: -10px;
    margin-bottom: 18px;
    font-size: 0.75rem;
    color: #7a6a58;
    text-align: center;
}

/* UPGRADE SEARCH */
#upgradeSearchContainer {
    text-align: center;
    margin: 20px 0;
}

#upgradeSearch {
    width: 80%;
    padding: 12px;
    font-size: 18px;
    border-radius: 10px;
    border: 2px solid #e3c27d;
    background-color: #fff7e6;
    color: #5a4633;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: 0.2s ease;
}

#upgradeSearch:focus {
    outline: none;
    background-color: #fff2d9;
    transform: scale(1.02);
}

/* UPGRADE TABLE */
#upgradeSect h1 {
    text-align: center;
    color: #b06f2a;
    margin-bottom: 20px;
}

#upgradeTable table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff7e6;
    border: 3px solid #e3c27d;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#upgradeTable th {
    background-color: #ffe0e8;
    padding: 14px;
    font-size: 20px;
    color: #5a4633;
    border-bottom: 3px solid #e3c27d;
}

#upgradeTable td {
    padding: 14px;
    font-size: 18px;
    color: #5a4633;
    text-align: center;
    border-bottom: 1px solid #f0d9b5;
}

/* HOVER */
#upgradeTable tr:hover {
    background-color: #fff2d9;
}

/* UPGRADE BUTTON */
#upgradeTable button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 10px;
    border: none;
    background-color: #ffe9f0;
    color: #5a4633;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

#upgradeTable button:hover:not(:disabled) {
    background-color: #ffdae6;
    transform: scale(1.05);
}

#upgradeTable button:disabled {
    background-color: #d7c7b0;
    color: #7a6a55;
    cursor: not-allowed;
    opacity: 0.7;
}

/* SETTINGS PAGE */
#settingsSect {
    background: #fff7ec; 
    border: 2px solid #f3d3b3; 
    border-radius: 14px;
    padding: 25px;
    width: 340px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-family: "Trebuchet MS", sans-serif;
    color: #8a5a3b; 
}

#settingsSect h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    color: #a86b3f;
}

#settingsSect h2 {
    font-size: 22px;
    margin-top: 20px;
    color: #b06f2a;
}

#settingsSect h3 {
    font-size: 18px;
    margin-top: 15px;
    color: #a86b3f;
}

#settingsSect label {
    display: block;
    margin-top: 8px;
    font-size: 16px;
}

#settingsSect input[type="text"],
#settingsSect input[type="password"] {
    width: 95%;
    padding: 10px;
    margin-top: 5px;
    border: 2px solid #f3d3b3;
    border-radius: 10px;
    background: #fffdf8;
    font-size: 16px;
    color: #5a3b2e;
    transition: 0.2s ease;
}

#settingsSect input[type="text"]:focus,
#settingsSect input[type="password"]:focus {
    border-color: #ffb88c;
    outline: none;
    background: #fff7ec;
}

#settingsSect .error {
    color: #d9534f;
    font-size: 14px;
    margin-top: 5px;
}

#settingsSect .success {
    color: #4caf50;
    font-size: 14px;
    margin-top: 5px;
}

#settingsSect button {
    background: #ffb88c;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 18px;
    color: #5a3b2e;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

#settingsSect button:hover {
    background: #ffa66f;
    transform: translateY(-2px);
}

#settingsSect button:active {
    transform: translateY(1px);
    background: #ff9a5c;
}

/* DISABLED BUTTON STYLE */
button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background-color: #f3e2d0 !important; /* soft muted cream */
    color: #a38a6a !important;            /* muted brown text */
    border-color: #d6c2a3 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* LEADERBOARD PAGE */
/* Leaderboard Title */
.leaderboard-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #6b3e26;
}

/* Report Buttons */
.report-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.report-buttons button {
    background-color: #f7c873;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.report-buttons button:hover {
    background-color: #ffdd99;
    transform: translateY(-2px);
}

/* Leaderboard Table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.leaderboard-table th {
    background-color: #f2b05e;
    padding: 12px;
    font-size: 1rem;
    color: #fff;
}

.leaderboard-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.leaderboard-table tr:nth-child(even) {
    background-color: #fafafa;
}

.leaderboard-table tr:hover {
    background-color: #ffe8c7;
}

/* GENERATE REPORT BUTTON */
#playerReport {
    background-color: #ffe8a3;       
    padding: 12px 22px;
    font-size: 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s ease;
    width: 100%;
    margin-top: 15px;
    text-align: center;

    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

#playerReport a {
    color: #5a4633;                  
    text-decoration: none;           
    display: block;                   
    width: 100%;
    height: 100%;
}

#playerReport:hover {
    background-color: #ffd77a;        
    transform: translateY(-2px);     
    box-shadow: 0 5px 10px rgba(0,0,0,0.18);
}


#playerReport:active {
    background-color: #ffcc66;        
    transform: translateY(0px);       
    box-shadow: 0 2px 4px rgba(0,0,0,0.10);
}

/* DELETE BUTTON */
#delete-button {
    background: #d9534f !important;
    color: #fff  !important;
    border: none  !important;
    padding: 12px 20px  !important; 
    border-radius: 10px  !important;
    font-size: 18px  !important;
    cursor: pointer  !important;
    transition: 0.2s ease !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

#delete-button:hover {
    background: #c9302c;
    transform: translateY(-2px) !important;
}



