body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #2c2f33;
    color: #ffffff;
    margin: 0;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 960px;
    padding: 20px;
    margin: 0 auto;
    text-align: center;
}

.content-box {
    background-color: #23272a;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

h1 {
    margin-top: 0;
    font-size: 2.5em;
    color: #7289da;
}

p {
    font-size: 1.2em;
    line-height: 1.6;
}

.discord-button {
    display: inline-block;
    background-color: #5865f2;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.discord-button:hover {
    background-color: #4752c4;
}

.logout-link {
    display: inline-block;
    color: #ff4d4d;
    text-decoration: none;
    margin-top: 30px;
    font-size: 1em;
}

.logout-link:hover {
    text-decoration: underline;
}

.pet-carousel {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 30px auto 15px auto;
}

.carousel-track-container {
    position: relative;
    height: 320px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    display: flex;
    transition: transform 300ms ease-in-out;
}

.carousel-slide {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 250px;
    height: auto;
    display: block;
    user-select: none;
}

.carousel-slide .pet-species-label {
    font-size: 1.2em;
    color: #99aab5;
    margin-top: 15px;
    font-style: italic;
}

.carousel-button {
    background-color: transparent;
    border: 2px solid #4f545c;
    color: #ffffff;
    font-size: 2em;
    line-height: 0;
    padding: 10px;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.carousel-button:hover {
    background-color: #4f545c;
    border-color: #7289da;
}

.carousel-button.prev {
    left: 0px;
}

.carousel-button.next {
    right: 0px;
}

.form-group {
    margin: 20px 0;
}

.text-input {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    font-size: 1.1em;
    border-radius: 5px;
    border: 2px solid #4f545c;
    background-color: #2c2f33;
    color: white;
    text-align: center;
    box-sizing: border-box;
}

.text-input:focus {
    outline: none;
    border-color: #7289da;
}

.text-input-small {
    padding: 8px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #4f545c;
    background-color: #2c2f33;
    color: white;
}

.dashboard {
    margin-top: 20px;
    padding: 20px;
    background-color: #2c2f33;
    border-radius: 8px;
    border: 1px solid #4f545c;
}

.pet-display {
    margin-bottom: 25px;
}

.pet-display img {
    max-width: 200px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
    transition: filter 0.3s ease-in-out;
}

.pet-display img.mood-sad {
    filter: grayscale(80%) brightness(0.9);
}

.pet-name-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.pet-name-container h2 {
    color: #7289da;
    margin: 0;
    padding: 0;
    font-size: 1.8em;
    display: inline-block;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #4f545c;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.icon-btn:hover {
    color: #7289da;
    background-color: rgba(114, 137, 218, 0.1);
}

#rename-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    width: 100px;
    text-align: right;
    font-weight: bold;
}

.progress-bar {
    flex-grow: 1;
    height: 20px;
    background-color: #4f545c;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 100%;
    border-radius: 10px;
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.progress.high {
    background-color: #43b581;
}

.progress.medium {
    background-color: #faa61a;
}

.progress.low {
    background-color: #f04747;
}

.action-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-button {
    background-color: #4f545c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.action-button:hover {
    background-color: #5c6269;
}

.action-button:active {
    transform: translateY(1px);
}

.action-button.small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.action-button.secondary {
    background-color: #36393f;
}

.action-button.secondary:hover {
    background-color: #40444b;
}