
.main-section {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.notification-sidebar {
    width: 350px;
    border-right: 1px solid #ccc;
    padding: 1rem;
    overflow-y: auto;
}

.notification-item {
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
    cursor: pointer;
}

.notification-title {
    font-weight: bold;
    transition: color 0.2s;
}

.notification-item:hover .notification-title {
    color: #0077cc;
}


/* Main content */
.DetailsContainer {
    flex: 1;
    padding: 1.5rem;
}

/* Style the character container */
.character-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Style each character box */
.character-box {
    width: 230px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.character-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.character-box h3 {
    padding-bottom: 3px;
    padding-top: 10px; /* Adjust padding to control the space around the name */
    margin: 0; /* Adjust margin to control the space above and below the name */
    line-height: 1; /* Adjust line height for spacing between the lines of the name */
    font-size: 18px; /* You can adjust the font size as well */
    font-weight: bold; /* Optional: Make the name bold */
    color: #333; /* Optional: Set the color of the character's name */
}


.character-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 5px;
}

/* Style the "+" button for creating a new character */
.create-character-box {
    width: 230px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 20px; /* Adjust font size for the button */
    font-weight: bold;
    color: #007BFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.create-character-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.luotallitext {
    margin: 0;
    padding: 0;
}

.center-text {
    text-align: center;
    margin: 0;
    font-size: 0.8rem;
    padding: 0 0 10px;
}


.stable-container-title {
    padding-top: 30px;
    padding-bottom: 10px;
    margin-bottom: 0;
    line-height: 1;
}

.stable-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.stable-box {
    width: 730px;
    height: 300px;
    border-radius: 4px;
    padding: 1rem;
    background: url('../IMG/stable.png') center center / cover no-repeat;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.create-stable-box {
    width: 730px;
    height: 250px;
    border-radius: 4px;
    padding: 1rem;
    background: url('../IMG/stable.png') center center / cover no-repeat;
    cursor: pointer;
    text-align: center;

    /* Add these lines to center content */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.create-stable-box:hover, .stable-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.createStableBtn {
    margin-bottom: 130px;
}

.create-stable-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.create-stable-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 600px;
    opacity: 0;
    transform: scale(0.8);
    animation: popIn 0.3s ease-out forwards;
}

.side-by-side-inputs {
    display: flex;
    gap: 2rem;               /* space between inputs */
    justify-content: center; /* align to left or center as needed */
}

.side-by-side-inputs .input-group {
    display: flex;
    flex-direction: column;  /* label on top, input below */
    flex: 1 1 150px;         /* flexible width, min 150px */
    max-width: 300px;        /* optional max width */
}

.side-by-side-inputs label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: #333;
}

.side-by-side-inputs input[type="number"] {
    padding: 0.4em 0.6em;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}


/* Prevent background scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Make modal content scrollable if it overflows */
.create-stable-content {
    max-height: 90vh;
    overflow-y: auto;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    cursor: pointer;
}


.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#privatePlacesWrapper {
    padding-top: 3px;
    padding-bottom: 6px;
    max-width: 500px;
    display: flex;
    align-items: center;   /* vertically center items */
    justify-content: space-between; /* space between first and others */
    flex-wrap: wrap; /* wrap if screen is small */
}

/* Container for radio options - wrap them in a div for better control */
#privatePlacesWrapper .radio-options {
    display: flex;
    gap: 20px;
    flex: 1 1 auto; /* take space on right */
    justify-content: flex-end;
}

#privatePlacesWrapper .radio-options label {
    display: flex;
    align-items: baseline; /* or flex-end */
    cursor: pointer;
}

/* The radio input itself */
#privatePlacesWrapper input[type="radio"] {
    margin-right: 0.5em;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #007bff;
    position: relative;
    top: 2px; /* nudge down */
}

.flex-row {
    display: flex;
    gap: 1rem;
}

.centered-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.tallinNimi {
    padding-bottom: 5px;
    padding-top: 10px;
}

.tallinTyyppi {
    font-family: 'Caveat', cursive;
    font-style: italic;
    font-size: 1rem;
    margin-top: -20px;
    padding: 0;
}

.hevosiaTeksti {
    margin-bottom: -8px;
}

.hidden {
    display: none;
}


/* --------------------------------------- KISATIIMI ------------------------------------------- */


.kisatiimi-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.kisatiimi-box {
    width: 230px;
    min-height: 170px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.create-kisatiimi-box {
    width: 730px;
    height: 250px;
    border-radius: 4px;
    padding: 1rem;
    background: url('../IMG/kisatiimi.png') center center / cover no-repeat;
    cursor: pointer;
    text-align: center;

    /* Add these lines to center content */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kisatiimi-box:hover,
.create-kisatiimi-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.kisatiimi-container-title {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 10px;
    margin-bottom: 0;
    line-height: 1;
}

.createKisatiimiBtn {
    margin-bottom: 130px;
}


.organization-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.organization-box {
    width: 230px;
    min-height: 150px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.create-organization-box {
    width: 730px;
    height: 250px;
    border-radius: 4px;
    padding: 1rem;
    cursor: pointer;
    text-align: center;
    background: url('../IMG/kilpailujärjestö.png') center center / cover no-repeat;
    /* Add these lines to center content */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.organization-box:hover,
.create-organization-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.organization-container-title {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 10px;
    margin-bottom: 0;
    line-height: 1;
}

.createOrganizationBtn {
    margin-bottom: 130px;
}

.type-description {
    padding-top: 5px;
    padding-left: 5px;
    margin-top: 0;
    padding-bottom: 10px;
}

.tallinTyyppiValinta {
    margin-bottom: 0;
}

/* --------------------- NOTIFICATIONS ----------------------- */
#notificationSidebar {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: #f9f9f9;
    border-right: 1px solid #ddd;
    height: 100vh;
    box-sizing: border-box;
}

#notificationList {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1rem; /* space before logout button */
}

#logoutButton {
    background-color: #e53e3e; /* nice red */
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    align-self: stretch; /* full width */
}

#logoutButton:hover {
    background-color: #c53030;
}

/* Clean Premium Notification List Component */
.notification-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    padding: 0 !important; /* Override layout rules for encapsulation */
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.notification-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.notification-item.active {
    border-color: #3182ce;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.15);
}

/* Header Area (Click Target) */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 1rem;
    background-color: #ffffff;
    user-select: none;
}

/* Layout wrapper to align the dot perfectly with the text */
.notification-title-container {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between dot and title text */
}

/* Elegant status indicator dot */
.unread-dot {
    width: 8px;
    height: 8px;
    background-color: #3182ce; /* Matching your blue theme highlight */
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0; /* Prevents dot compression if title text wraps */
    animation: pulseGlow 2s infinite;
}

/* Optional soft pulse effect for pending items */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(49, 130, 206, 0.7);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(49, 130, 206, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(49, 130, 206, 0);
    }
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

.notification-item:hover .notification-title {
    color: #3182ce;
}

.notification-chevron {
    font-size: 0.75rem;
    color: #a0aec0;
    transition: transform 0.2s ease;
}

/* Content Area (Hidden Dropdown Panel) */
.notification-content {
    display: none; /* Controlled dynamically by JS */
    padding: 0 1rem 1rem 1rem;
    background-color: #f7fafc;
    border-top: 1px dashed #e2e8f0;
}

.notification-msg {
    font-size: 0.88rem;
    line-height: 1.4;
    color: #4a5568;
    margin: 0 0 0.75rem 0;
}

/* Footer Container */
.notification-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-date {
    font-size: 0.78rem;
    color: #718096;
}

/* Action Control Buttons Layout */
.notification-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.btn-action {
    flex: 1;
    border: none;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    text-align: center;
}

/* Distinct color modifications for badges */
.status-badge-accepted {
    color: #38a169;
}

.status-badge-declined {
    color: #e53e3e; /* Clear red for declined alerts */
}

.btn-action:active {
    transform: scale(0.97);
}

/* Green Accept Styling */
.btn-accept {
    background-color: #48bb78;
    color: white;
}

.btn-accept:hover {
    background-color: #38a169;
}

/* Red Decline Styling */
.btn-decline {
    background-color: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e1;
}

.btn-decline:hover {
    background-color: #e2e8f0;
    color: #e53e3e;
    border-color: #feb2b2;
}

.welcome-guide-list {
    margin: 0.5rem 0 0.75rem 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: #4a5568;
}

.welcome-guide-list li {
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

/* Ensure paragraph formats display nicely */
.notification-msg p {
    margin: 0 0 0.5rem 0;
}

#notificationSidebar {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: #f9f9f9;
    border-right: 1px solid #ddd;
    height: 80vh;
    max-height: 80vh; /* Varmistaa ettei veny ikkunan ulkopuolelle */
    position: sticky;
    top: 0;
    box-sizing: border-box;
}

#notificationList {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.25rem; /* Tilaa skrollauspalkille */
}

/* Moderni premium-skrollauspalkki ilmoituslistalle */
#notificationList::-webkit-scrollbar {
    width: 6px;
}

#notificationList::-webkit-scrollbar-track {
    background: transparent;
}

#notificationList::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

#notificationList::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* "Näytä lisää" -painikkeen tyylit */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    width: 100%;
}

.btn-load-more {
    background-color: #ffffff;
    color: #4a5568;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    background-color: #f7fafc;
    border-color: #a0aec0;
    color: #2d3748;
}