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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222222;
}

.site-header {
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}

.logo img {
    width: 230px;
    height: auto;
    display: block;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.main-menu a {
    text-decoration: none;
    color: #14213d;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-menu a:hover {
    color: #39a852;
}

.content {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 30px;
    text-align: center;
}

.content h1 {
    font-size: 42px;
    color: #14213d;
    margin-bottom: 15px;
}

.content p {
    font-size: 18px;
    color: #666666;
}


/* Upcoming Matches */

.match-date {
    max-width: 900px;
    margin: 45px auto 15px auto;
    padding-bottom: 8px;
    border-bottom: 2px solid #14213d;
    color: #14213d;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
}

.match-card-link {
    display: block;
    max-width: 900px;
    margin: 0 auto 15px auto;
    color: inherit;
    text-decoration: none;
}

.match-card {
    max-width: 900px;
    margin: 0 auto 15px auto;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.match-analysis-message {
    margin: 0 0 8px 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.analysis-unavailable {
    color: #d00000;
}

.analysis-available {
    color: #39a852;
}

.match-league {
    color: #14213d;
    font-size: 15px;
    font-weight: 700;
}

.match-league img {
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 6px auto;
}

.match-time {
    color: #39a852;
    font-size: 18px;
    font-weight: 700;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
}

.team {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 280px;
    font-size: 17px;
    font-weight: 600;
    color: #222222;
}

.home-team {
    justify-content: flex-end;
    text-align: right;
}

.away-team {
    justify-content: flex-start;
    text-align: left;
}

.team img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.match-vs {
    color: #999999;
    font-size: 13px;
    font-weight: 700;
}


.match-card-date {
    margin: 0 0 6px 0;
    color: #14213d;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

/* Predictions */

.prediction-page {
    max-width: 1200px;
    margin-top: 5px;
}

.prediction-title-vs {
    color: #999999;
    font-size: 18px;
    margin: 0 15px;
}

.prediction-panel {
    max-width: 1100px;
    margin: 0 auto 20px auto;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.prediction-panel h2 {
    margin-bottom: 25px;
    color: #14213d;
    font-size: 22px;
}

.team-stat-row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto max-content max-content 45px;
    gap: 12px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eeeeee;
}

.team-stat-row:last-child {
    border-bottom: none;
}

.team-stat-name {
    color: #14213d;
    font-size: 17px;
    font-weight: 700;
}

.team-stat-row label {
    color: #555555;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.team-stat-row select {
    width: max-content;
    max-width: 100%;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    background: #ffffff;
    color: #222222;
    font-size: 14px;
    margin: 0 auto;
}

.team-stat-row label select {
    width: auto;
    min-width: 65px;
    margin-left: 4px;
}

.prediction-warning {
    color: #d00000;
    font-weight: 700;
}

.prediction-placeholder {
    min-height: 80px;
}

.team-stat-games {
    grid-column: 5;
    grid-row: 1;
    align-self: center;
    margin-left: 8px;
    color: #555555;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}


.prediction-results {
    display: none;
    width: 100%;
    min-height: 100px;
    margin: 18px auto;
}

.prediction-results:empty {
    display: none;
}

.prediction-section-title {
    margin: 18px 0 10px;
    color: #14213d;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.prediction-output {
    width: 100%;
    box-sizing: border-box;
}

.prediction-output-title {
    margin-bottom: 14px;
    color: #14213d;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.prediction-messages {
    max-width: 1100px;
    margin: 0 auto 20px auto;
}

.prediction-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
}

.prediction-message-icon {
    font-size: 18px;
    line-height: 1;
}

.prediction-message-error {
    color: #d00000;
    background: #fff0f0;
    border: 1px solid #f0b0b0;
}

.prediction-message-warning {
    color: #a66a00;
    background: #fff8e5;
    border: 1px solid #ead08a;
}

.prediction-message-success {
    color: #238b45;
    background: #eefaf2;
    border: 1px solid #a8d9b8;
}


/* Top fixture odds */

.prediction-fixture-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.prediction-fixture-title-row {
    position: relative;
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 18px;
    align-items: center;
}

.prediction-fixture-title {
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    color: #14213d;
    font-size: 42px;
    font-weight: 700;
    white-space: nowrap;
}

.prediction-top-odds {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    width: 100%;
    flex-wrap: nowrap;
}

.prediction-top-odd-block {
    flex: 1 1 0;
    max-width: 360px;
    min-width: 0;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(20, 33, 61, 0.08);
}

.prediction-top-odd-header {
    padding: 5px 10px;
    background: #e9eef7;
    color: #365486;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.prediction-top-odd-values,
.prediction-top-odd-numbers {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.prediction-top-odd-values span,
.prediction-top-odd-numbers strong {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.prediction-top-odd-values {
    padding: 4px 8px;
    color: #65758b;
    font-size: 11px;
    font-weight: 600;
}

.prediction-top-odd-numbers {
    padding: 4px 8px 6px;
    border-top: 1px solid #edf0f4;
    color: #167a68;
    font-size: 13px;
}

/* Prediction attribute weights */

.prediction-attribute-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 125px;
    gap: 18px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 20px auto;
    padding-bottom: 20px;
    border-bottom: 2px solid #39a852;
}

.prediction-attribute-panel {
    width: 100%;
    margin: 0;
}

.prediction-weight-control {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.prediction-weight-control label {
    color: #365486;
    font-size: 13px;
    font-weight: 700;
}

.prediction-weight-input {
    width: 100px;
    height: 42px;
    padding: 6px 9px;
    border: 1px solid #c7d1df;
    border-radius: 6px;
    background: #f8fafc;
    color: #14213d;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.prediction-weight-input:focus {
    outline: none;
    border-color: #365486;
    box-shadow: 0 0 0 3px rgba(54, 84, 134, 0.12);
}

.prediction-action-bar {
    position: static;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.prediction-remaining {
    width: 100px;
    height: 42px;
    padding: 6px 9px;
    border: 1px solid #b9c4d3;
    border-radius: 6px;
    background: #eef2f7;
    color: #14213d;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    opacity: 1;
}

.get-predictions-button,
.new-prediction-button {
    height: 42px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    background: #167a68;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

#new-prediction {
    display: none;
}

.get-predictions-button:hover:not(:disabled) {
    background: #126654;
}

.get-predictions-button:active:not(:disabled) {
    transform: translateY(1px);
}

.get-predictions-button:disabled {
    background: #aab4c1;
    cursor: not-allowed;
}

.get-predictions-button.loading {
    opacity: 0.7;
}

/* Odds Comparison controls */

.odds-tolerance-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.odds-tolerance-row label {
    color: #365486;
    font-size: 13px;
    font-weight: 700;
}

.odds-tolerance-row select {
    width: 80px;
    height: 38px;
    padding: 6px 9px;
    border: 1px solid #c7d1df;
    border-radius: 6px;
    background: #f8fafc;
    color: #14213d;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.odds-tolerance-row select:focus {
    outline: none;
    border-color: #365486;
    box-shadow: 0 0 0 3px rgba(54, 84, 134, 0.12);
}

/* Mobile layout */


/* Algorithm selector */
.prediction-algorithm-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px auto 18px;
    padding: 12px 18px;
    width: fit-content;
    max-width: calc(100% - 30px);
    background: #f5f8fc;
    border: 1px solid #d6dfeb;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(24, 42, 74, 0.08);
}

.prediction-algorithm-bar label {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #17213b;
}

.prediction-algorithm-bar select {
    min-width: 230px;
    height: 38px;
    padding: 0 34px 0 12px;
    border: 1px solid #aebdd0;
    border-radius: 7px;
    background: #ffffff;
    color: #17213b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.prediction-algorithm-bar select:focus {
    outline: none;
    border-color: #4c6f9f;
    box-shadow: 0 0 0 3px rgba(76, 111, 159, 0.14);
}

.create-own-algorithm-button {
    height: 38px;
    padding: 0 16px;
    border: 1px solid #355985;
    border-radius: 7px;
    background: #355985;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease,
                box-shadow 0.15s ease, transform 0.05s ease;
}

.create-own-algorithm-button:hover {
    background: #29486d;
    border-color: #29486d;
    box-shadow: 0 3px 8px rgba(24, 42, 74, 0.18);
}

.create-own-algorithm-button:active {
    transform: translateY(1px);
}

@media (max-width: 600px) {
    .prediction-algorithm-bar {
        width: calc(100% - 20px);
        max-width: none;
        flex-wrap: wrap;
    }

    .prediction-algorithm-bar select {
        min-width: 200px;
        flex: 1 1 200px;
    }

    .create-own-algorithm-button {
        flex: 1 1 auto;
    }
}

@media (max-width: 700px) {

    .site-header {
        min-height: 0;
        padding: 12px 15px 15px 15px;
        flex-direction: column;
        gap: 12px;
    }

    .logo img {
        width: 180px;
    }

    .main-menu {
        width: 100%;
        gap: 12px 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-menu a {
        font-size: 15px;
    }

    .content {
        width: 100%;
        margin: 25px auto;
        padding: 0 10px;
    }

    .content h1 {
        font-size: 30px;
    }

    .match-date {
        margin-top: 25px;
    }

    .match-card-link,
    .match-card {
        width: 100%;
    }

    .match-card {
        padding: 12px;
    }

    .match-analysis-message {
        margin-bottom: 6px;
        font-size: 11px;
    }

    .match-card-date {
        font-size: 14px;
    }

    .match-header {
        margin-bottom: 12px;
    }

    .match-teams {
        gap: 8px;
    }

    .team {
        width: auto;
        min-width: 0;
        flex: 1;
        font-size: 14px;
        line-height: 1.25;
    }

    .team img {
        width: 34px;
        height: 34px;
    }

    .match-league img {
        width: 40px !important;
        height: 25px;
    }

    .match-vs {
        font-size: 12px;
    }

    /* Predictions */

    .prediction-page {
        width: 100%;
        margin-top: 5px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .prediction-fixture-header {
        width: 100%;
        gap: 8px;
        margin-bottom: 15px;
    }

    .prediction-top-odds {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .prediction-top-odd-block {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }

    .prediction-top-odd-header {
        padding: 6px 8px;
        font-size: 13px;
    }

    .prediction-top-odd-values {
        padding: 5px 6px;
        font-size: 12px;
    }

    .prediction-top-odd-numbers {
        padding: 5px 6px 7px;
        font-size: 14px;
    }

    .prediction-fixture-title-row {
        width: 100%;
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .prediction-fixture-title {
        width: 100%;
        min-width: 0;
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
        text-align: center;
        line-height: 1.1;
        font-size: 28px;
        gap: 6px;
    }

    .prediction-title-vs {
        font-size: 16px;
        margin: 0 5px;
    }

    .prediction-action-bar {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .prediction-remaining,
    .get-predictions-button {
        height: 42px;
    }

    .prediction-remaining {
        width: 90px;
        flex: 0 0 90px;
    }

    .get-predictions-button,
    .new-prediction-button {
        min-width: 0;
        flex: 1 1 auto;
        padding: 0 14px;
        font-size: 14px;
    }

    .prediction-attribute-row {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .prediction-attribute-panel,
    .prediction-panel {
        width: 100%;
        min-width: 0;
        padding: 15px;
        margin-bottom: 12px;
    }

    .prediction-panel h2 {
        margin-bottom: 15px;
        font-size: 20px;
    }

    .team-stat-row {
        grid-template-columns: auto auto 1fr;
        gap: 10px;
        padding: 14px 0;
    }

    .team-stat-name {
        grid-column: 1 / -1;
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .team-stat-row label {
        grid-column: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
    }

    .team-stat-row label select {
        width: auto;
        min-width: 65px;
        flex: 0 0 auto;
        margin-left: 0;
    }

    .team-stat-row > select {
        width: max-content;
        max-width: 100%;
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .team-stat-row > select[name$="_league"] {
        grid-column: 1 / -1;
        grid-row: 3;
        width: max-content;
        max-width: 100%;
        justify-self: start;
        margin: 0;
    }

    .team-stat-games {
        grid-column: 3;
        grid-row: 2;
        margin-left: 0;
        justify-self: start;
        align-self: center;
    }

    .prediction-weight-control {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        padding: 0 2px 4px 0;
    }

    .prediction-weight-input {
        width: 100px;
    }

    .odds-tolerance-row {
        width: 100%;
        flex-wrap: wrap;
        margin-top: 12px;
    }
}

@media (max-width: 400px) {

    .logo img {
        width: 160px;
    }

    .main-menu {
        gap: 10px 14px;
    }

    .main-menu a {
        font-size: 14px;
    }

    .content {
        padding: 0 7px;
    }

    .prediction-page {
        padding-left: 2px;
        padding-right: 2px;
    }

    .prediction-fixture-title {
        font-size: 24px;
    }

    .prediction-title-vs {
        font-size: 14px;
        margin: 0 3px;
    }

    .prediction-action-bar {
        gap: 6px;
    }

    .prediction-remaining {
        width: 82px;
        flex-basis: 82px;
        font-size: 16px;
    }

    .get-predictions-button,
    .new-prediction-button {
        padding: 0 10px;
        font-size: 13px;
    }

    .prediction-panel,
    .prediction-attribute-panel {
        padding: 12px;
    }
}

/* Algorithm Information Page */
.algorithm-page {
    max-width: 1100px;
    margin: 45px auto 70px auto;
    text-align: left;
}

.algorithm-hero {
    padding: 35px 40px;
    margin-bottom: 28px;
    background: #f5f8fc;
    border: 1px solid #d6dfeb;
    border-radius: 10px;
    text-align: center;
}

.algorithm-hero h1 {
    margin-bottom: 12px;
    color: #14213d;
    font-size: 38px;
}

.algorithm-hero p {
    max-width: 820px;
    margin: 0 auto;
    color: #555555;
    font-size: 17px;
    line-height: 1.7;
}

.algorithm-section {
    margin-bottom: 28px;
    padding: 28px 30px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.algorithm-section h2 {
    margin-bottom: 8px;
    color: #14213d;
    font-size: 25px;
}

.algorithm-section-intro {
    margin-bottom: 22px;
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
}

.algorithm-attributes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.algorithm-attribute {
    position: relative;
    padding: 24px 24px 22px 70px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fafbfd;
}

.algorithm-attribute-number {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #355985;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.algorithm-attribute h3,
.algorithm-info-card h3,
.algorithm-weight-card h3 {
    margin-bottom: 8px;
    color: #14213d;
    font-size: 19px;
}

.algorithm-attribute p,
.algorithm-info-card p,
.algorithm-weight-card p,
.algorithm-tolerance p {
    color: #555555;
    font-size: 15px;
    line-height: 1.65;
}

.algorithm-weight-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 28px;
    align-items: start;
}

.algorithm-weight-card {
    padding: 22px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fafbfd;
}

.algorithm-weight-example {
    overflow: hidden;
    border: 1px solid #d6dfeb;
    border-radius: 8px;
}

.algorithm-weight-example-title {
    padding: 13px 16px;
    background: #e9eef7;
    color: #365486;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.algorithm-weight-row,
.algorithm-weight-total,
.algorithm-remaining-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid #edf0f4;
    color: #333333;
    font-size: 15px;
}

.algorithm-weight-total {
    color: #14213d;
    font-weight: 700;
}

.algorithm-remaining-row {
    border-bottom: none;
    background: #eefaf2;
    color: #238b45;
    font-weight: 700;
}

.algorithm-tolerance {
    margin-top: 22px;
    padding: 18px 20px;
    border-left: 4px solid #355985;
    background: #f5f8fc;
    border-radius: 0 7px 7px 0;
}

.algorithm-tolerance h3 {
    margin-bottom: 7px;
    color: #14213d;
    font-size: 18px;
}

.algorithm-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.algorithm-info-card {
    padding: 22px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fafbfd;
}

.algorithm-info-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 4px;
    background: #eefaf2;
    color: #238b45;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.algorithm-important {
    margin-top: 18px;
    padding: 15px 18px;
    border-radius: 6px;
    background: #fff8e5;
    border: 1px solid #ead08a;
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
}

.algorithm-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.algorithm-result-card {
    padding: 20px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fafbfd;
    text-align: center;
}

.algorithm-result-card strong {
    display: block;
    margin-bottom: 8px;
    color: #14213d;
    font-size: 17px;
}

.algorithm-result-card span {
    color: #666666;
    font-size: 14px;
}

.algorithm-footer {
    padding: 20px 25px;
    color: #555555;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 700px) {
    .algorithm-page {
        margin-top: 25px;
        margin-bottom: 40px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .algorithm-hero {
        padding: 25px 18px;
    }

    .algorithm-hero h1 {
        font-size: 30px;
    }

    .algorithm-section {
        padding: 20px 15px;
    }

    .algorithm-attributes,
    .algorithm-weight-layout,
    .algorithm-info-grid,
    .algorithm-results {
        grid-template-columns: 1fr;
    }
}

/* Dashboard and Create Message */
.dashboard-page {
    max-width: 1000px;
    margin-top: 35px;
    margin-bottom: 60px;
}

.dashboard-page .prediction-algorithm-bar,
.createmessage-page .prediction-algorithm-bar {
    margin-top: 0;
    margin-bottom: 28px;
    padding: 14px 24px;
}

.dashboard-page .prediction-algorithm-bar label,
.createmessage-page .prediction-algorithm-bar label {
    font-size: 22px;
}

.dashboard-message-card {
    max-width: 900px;
    margin: 0 auto 18px auto;
    padding: 24px 28px 20px 28px;
    background: #ffffff;
    border: 1px solid #e1e6ed;
    border-left: 4px solid #167a68;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(20, 33, 61, 0.06);
    text-align: left;
}

.dashboard-message-text {
    margin: 0 0 18px 0;
    color: #333333;
    font-size: 17px;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dashboard-message-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #edf0f4;
    color: #6b7280;
    font-size: 13px;
}

.dashboard-message-meta-label {
    margin-right: 6px;
    color: #365486;
    font-weight: 700;
}

.dashboard-empty {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px 25px;
    background: #ffffff;
    border: 1px solid #e1e6ed;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(20, 33, 61, 0.06);
    text-align: center;
}

.dashboard-empty p {
    margin: 0;
    color: #666666;
    font-size: 16px;
}

.createmessage-page {
    max-width: 1000px;
    margin-top: 35px;
    margin-bottom: 60px;
}

.createmessage-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e1e6ed;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(20, 33, 61, 0.06);
    text-align: left;
}

.createmessage-panel h2 {
    margin-bottom: 14px;
    color: #14213d;
    font-size: 22px;
}

.createmessage-textarea {
    display: block;
    width: 100%;
    min-height: 220px;
    padding: 14px 16px;
    border: 1px solid #c7d1df;
    border-radius: 6px;
    background: #f8fafc;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
}

.createmessage-textarea:focus {
    outline: none;
    border-color: #365486;
    box-shadow: 0 0 0 3px rgba(54, 84, 134, 0.12);
    background: #ffffff;
}

.createmessage-action-bar {
    margin-top: 18px;
}

@media (max-width: 700px) {
    .dashboard-page,
    .createmessage-page {
        margin-top: 25px;
        margin-bottom: 40px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .dashboard-page .prediction-algorithm-bar,
    .createmessage-page .prediction-algorithm-bar {
        margin-bottom: 20px;
        padding: 12px 18px;
    }

    .dashboard-page .prediction-algorithm-bar label,
    .createmessage-page .prediction-algorithm-bar label {
        font-size: 20px;
    }

    .dashboard-message-card,
    .createmessage-panel {
        width: 100%;
        padding: 20px 18px;
    }

    .dashboard-message-text {
        font-size: 16px;
    }

    .dashboard-message-meta {
        justify-content: flex-start;
        flex-wrap: wrap;
        line-height: 1.5;
    }

    .createmessage-textarea {
        min-height: 190px;
    }
}
