
/*
Theme Name: DogSaaS
Version: 5.0
*/

/* GLOBAL */
body {
    margin: 0;
    background: #f5f7fa;
    color: #1e293b;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* HEADER */
.app-header {
    background: #ffffff;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo img {
    height: 40px;
}

.app-topnav a {
    margin-left: 20px;
    color: #475569;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.app-topnav a:hover {
    color: #0ea5e9;
}

/* MAIN */
.app-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* CARDS */
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* GREETING */
.dashboard-greeting h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

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

/* GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.stat-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    text-transform: uppercase;
    color: #64748b;
}

.stat-card p {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #0ea5e9;
}

/* LISTS */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.list-item p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* BUTTONS */
.btn {
    background: #0ea5e9;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.btn:hover {
    background: #0284c7;
}

.btn-small {
    background: #1d4ed8;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.btn-small:hover {
    background: #2563eb;
}

/* ADD DOG PAGE */
.add-dog-page {
    max-width: 900px;
    margin: 0 auto;
}

/* HERO */
.add-dog-hero {
    text-align: center;
    padding: 40px;
}

.add-dog-hero h1 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
}

.add-dog-hero p {
    margin: 0;
    font-size: 16px;
    color: #475569;
}

/* FORM CARD */
.add-dog-form-card {
    padding: 30px;
}

/* ACF FORM STYLING */
.add-dog-form-card .acf-field {
    margin-bottom: 20px;
}

.add-dog-form-card .acf-label label {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.add-dog-form-card input[type="text"],
.add-dog-form-card input[type="date"],
.add-dog-form-card textarea,
.add-dog-form-card select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 15px;
    color: #1e293b;
}

.add-dog-form-card input[type="text"]:focus,
.add-dog-form-card input[type="date"]:focus,
.add-dog-form-card textarea:focus,
.add-dog-form-card select:focus {
    border-color: #0ea5e9;
    outline: none;
}

.add-dog-form-card .acf-submit button {
    background: #0ea5e9;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.add-dog-form-card .acf-submit button:hover {
    background: #0284c7;
}

/* DOG SUMMARY LIST */
.dog-summary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.dog-summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dog-summary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.dog-summary-item img {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    object-fit: cover;
}

.dog-summary-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    background: #e2e8f0;
}

.dog-summary-info h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
}

.dog-summary-info p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* DOG SUMMARY HEADER */
.dog-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dog-summary-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

/* DOG SUMMARY LIST */
.dog-summary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

/* KOIRAKORTTI */
.dog-summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dog-summary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* KUVA */
.dog-summary-item img,
.dog-summary-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    object-fit: cover;
    background: #e2e8f0;
}

/* TEKSTIT */
.dog-summary-info h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
}

.dog-summary-info p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* DASHBOARD SECTION HEADER */
.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dashboard-section-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

/* TRAINING SUMMARY ITEM */
.training-summary-item {
    display: block;
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.training-summary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.training-summary-info h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
}

.training-summary-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #64748b;
}

/* ========== DASHBOARD NAVIGATION ========== */

.dashboard-nav {
    background: #ffffff;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.dashboard-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-nav a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.dashboard-nav a:hover {
    background: #0ea5e9;
    color: #ffffff;
}

/* ACTIVE STATE */
.dashboard-nav a.active {
    background: #0ea5e9;
    color: #ffffff;
}

/* MOBILE */
@media (max-width: 768px) {
    .dashboard-nav ul {
        gap: 12px;
    }

    .dashboard-nav a {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* ========== DASHBOARD NAVIGATION BASE ========== */

.dashboard-nav {
    background: #ffffff;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== HAMBURGER BUTTON ========== */

.hamburger {
    width: 32px;
    height: 24px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #0f172a;
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Hamburger animation */
.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========== MENU LINKS ========== */

.dashboard-nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-nav a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.dashboard-nav a:hover {
    background: #0ea5e9;
    color: #ffffff;
}

/* ========== MOBILE MENU ========== */

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .dashboard-nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: column;
        gap: 0;
        padding: 0;
        display: none;
    }

    .dashboard-nav ul.open {
        display: flex;
    }

    .dashboard-nav ul li a {
        padding: 16px 24px;
        border-bottom: 1px solid #e2e8f0;
    }
}
/* ========== USER BAR (DESKTOP) ========== */

.user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.user-email {
    font-size: 13px;
    color: #64748b;
}

/* ========== MOBILE USER BAR ========== */

@media (max-width: 768px) {

    .user-bar {
        position: absolute;
        right: 70px;
        top: 18px;
    }

    .user-info {
        display: none; /* avatar only on mobile */
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }
}
/* ========== DASHBOARD HEADER BASE ========== */

.dashboard-nav {
    background: #ffffff;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== HAMBURGER BUTTON ========== */

.hamburger {
    width: 32px;
    height: 24px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #0f172a;
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Hamburger animation */
.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========== USER BAR ========== */

.user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.user-email {
    font-size: 13px;
    color: #64748b;
}

/* ========== NAVIGATION LINKS (DESKTOP) ========== */

.dashboard-nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-nav a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.dashboard-nav a:hover {
    background: #0ea5e9;
    color: #ffffff;
}

/* ========== MOBILE RESPONSIVE HEADER ========== */

@media (max-width: 768px) {

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Hide desktop menu */
    .dashboard-nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: column;
        gap: 0;
        padding: 0;
        display: none;
    }

    /* Show menu when open */
    .dashboard-nav ul.open {
        display: flex;
    }

    .dashboard-nav ul li a {
        padding: 16px 24px;
        border-bottom: 1px solid #e2e8f0;
    }

    /* User bar simplified */
    .user-info {
        display: none;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }
}
/* ========== DASHBOARD BASE ========== */

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ========== CARD (YHTENÄINEN) ========== */

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
}

/* ========== SECTION HEADER (OTSikko + NAPPI) ========== */

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dashboard-section-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

/* ========== LISTAT (KOIRAT, TREENIT, VIHJEET, KILPAILUT, MERKIT) ========== */

.dashboard-section-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========== YHTENÄISET KORTIT ========== */

.dashboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* ========== KORTIN SISÄLTÖ ========== */

.dashboard-item h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
}

.dashboard-item p {
    margin: 4px 0;
    font-size: 14px;
    color: #64748b;
}

/* ========== KUVAT (KOIRAT) ========== */

.dashboard-item img,
.dashboard-item-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    object-fit: cover;
    background: #e2e8f0;
}

/* ========== BUTTONS ========== */

.btn {
    background: #0ea5e9;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    background: #0284c7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

/* ========== MOBILE OPTIMIZATION ========== */

@media (max-width: 768px) {

    /* Kortit pinoutuvat kauniisti */
    .dashboard-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .dashboard-item img {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    /* Otsikko + nappi pinoutuvat */
    .dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dashboard-section-header h2 {
        font-size: 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    /* Korttien tekstit skaalautuvat */
    .dashboard-item h3 {
        font-size: 18px;
    }

    .dashboard-item p {
        font-size: 15px;
    }

    /* Dashboard container spacing */
    .dashboard-container {
        padding: 20px 16px;
    }
}
.chart-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #0f172a;
}

.chart-card canvas {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 40px;
}

/* MOBILE */
@media (max-width: 768px) {
    .chart-card h2 {
        font-size: 18px;
    }
}
/* ========== HEATMAP CARD ========== */

.heatmap-card {
    padding: 30px;
}

/* GRID */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 6px;
    margin-top: 20px;
}

/* DAY SQUARE */
.heatmap-day {
    width: 100%;
    padding-top: 100%; /* square */
    position: relative;
    border-radius: 6px;
    background: #e5e7eb;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.heatmap-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}

/* INTENSITY COLORS */
.intensity-0 { background: #e5e7eb; }
.intensity-1 { background: #c7d2fe; }
.intensity-2 { background: #a5b4fc; }
.intensity-3 { background: #818cf8; }
.intensity-4 { background: #6366f1; }

/* TOOLTIP */
.heatmap-tooltip {
    display: none;
    position: absolute;
    top: -10px;
    left: 110%;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    white-space: nowrap;
    z-index: 10;
}

.heatmap-day:hover .heatmap-tooltip {
    display: block;
}

/* MOBILE */
@media (max-width: 768px) {
    .heatmap-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

.chart-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #0f172a;
}

.chart-card canvas {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .chart-card h2 {
        font-size: 18px;
    }
}

/* DOG PROFILE */
.dog-profile {
    max-width: 900px;
    margin: 0 auto;
}

/* HERO */
.dog-hero {
    text-align: center;
    padding: 40px;
}

.dog-photo {
    width: 180px;
    height: 180px;
    border-radius: 100%;
    object-fit: cover;
    margin-bottom: 20px;
}

.dog-name {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0 5px;
    color: #0f172a;
}

.dog-breed,
.dog-birth {
    font-size: 15px;
    color: #64748b;
}

/* INFO CARD */
.dog-info-card h2 {
    margin-top: 0;
    color: #0f172a;
}

/* ACTIONS */
.dog-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0 30px;
}

/* MOBILE */
@media (max-width: 768px) {

    .dog-photo {
        width: 140px;
        height: 140px;
    }

    .dog-name {
        font-size: 26px;
    }

    .dog-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
/* ========== DASHBOARD GREETING ========== */

.dashboard-greeting {
    padding: 40px;
    text-align: left;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.dashboard-greeting h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.dashboard-greeting p {
    font-size: 16px;
    color: #64748b;
}

/* MOBILE */
@media (max-width: 768px) {
    .dashboard-greeting {
        padding: 30px 20px;
    }

    .dashboard-greeting h1 {
        font-size: 24px;
    }
}
.btn-small {
    background: #e2e8f0;
    color: #0f172a;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn-small:hover {
    background: #cbd5e1;
}
/* ========== DOG NAME CARD ========== */

.dog-name-card {
    text-align: center;
    padding: 40px;
}

.dog-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #0f172a;
}

.dog-achievements {
    font-size: 16px;
    color: #475569;
    margin: 0;
}


/* ========== DOG PHOTO CARD ========== */

.dog-photo-card {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    overflow: hidden; /* tärkeä */
}

.dog-photo {
    width: 100%;
    height: 350px; /* kortin korkeus */
    object-fit: cover; /* rajaa siististi */
    border-radius: 0; /* poistaa ympyrän */
    display: block;
}


/* ========== DOG INFO CARD ========== */

.dog-info-card h2 {
    margin-top: 0;
    color: #0f172a;
}

.dog-info-card p {
    font-size: 16px;
    color: #475569;
    margin: 8px 0;
}


/* ========== MOBILE ========== */

@media (max-width: 768px) {

    .dog-name {
        font-size: 26px;
    }

    .dog-achievements {
        font-size: 15px;
    }

    .dog-photo {
        width: 140px;
        height: 140px;
    }

    .dog-photo-placeholder {
        width: 140px;
        height: 140px;
    }
}
/* EDIT DOG PAGE */

.edit-dog {
    max-width: 700px;
    margin: 0 auto;
}

.edit-dog .card {
    padding: 40px;
}

.edit-dog h1 {
    margin-top: 0;
    font-size: 26px;
    color: #0f172a;
}

.edit-dog label {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    color: #0f172a;
}

.edit-dog input,
.edit-dog textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
}

.edit-dog textarea {
    min-height: 120px;
}

.edit-dog .btn {
    margin-top: 30px;
    width: 100%;
    text-align: center;
}

.edit-dog {
    max-width: 700px;
    margin: 0 auto;
}

.edit-dog .card {
    padding: 40px;
}

.edit-dog h1 {
    margin-top: 0;
    font-size: 26px;
    color: #0f172a;
}

.edit-dog label {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    color: #0f172a;
}

.edit-dog input,
.edit-dog textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
}

.edit-dog textarea {
    min-height: 120px;
}

.edit-dog-photo {
    width: 160px;
    height: 160px;
    border-radius: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.edit-dog .btn {
    margin-top: 30px;
    width: 100%;
    text-align: center;
}
/* ========== DOG HEALTH CARD ========== */

.dog-health-card h2 {
    margin-top: 0;
    color: #0f172a;
}

.dog-health-card p {
    font-size: 16px;
    color: #475569;
    margin: 8px 0;
}
.card {
    padding: 40px;
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Kutsumanimi + saavutukset */
.dog-call-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #0f172a;
}

.dog-achievements {
    font-size: 16px;
    color: #475569;
}

/* Kuva */
.dog-photo {
    width: 220px;
    height: 220px;
    border-radius: 100%;
    object-fit: cover;
}

.dog-photo-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 100%;
    background: #e2e8f0;
}

/* Perustiedot, terveystiedot, muistiinpanot */
.dog-basic-card h2,
.dog-health-card h2,
.dog-notes-card h2 {
    margin-top: 0;
    color: #0f172a;
}

.dog-basic-card p,
.dog-health-card p,
.dog-notes-card p {
    font-size: 16px;
    color: #475569;
    margin: 8px 0;
}
/* ========== CENTERED CALL NAME CARD ========== */

.center-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dog-call-name {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #0f172a;
}

.dog-achievements {
    font-size: 18px;
    color: #475569;
    margin: 0;
}
.dog-edit-form {
    display: block;
    width: 100%;
}

.dog-edit-form .card {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}
/* ========== MUOKKAUSSIVUN KORTIT ========== */

.edit-card {
    padding: 30px;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);

    /* Palauttaa vasemman reunan ulkoasun */
    text-align: left;
    display: block;
}

.edit-card h2 {
    margin-top: 0;
    color: #0f172a;
}

.edit-card label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 600;
    color: #334155;
}

.edit-card input,
.edit-card textarea,
.edit-card select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 10px;
}
/* Estää profiilisivun center-card tyylin muokkaussivulla */
.dog-edit-form .center-card,
.dog-edit-form .card {
    text-align: left !important;
    display: block !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}
.edit-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.edit-card {
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.edit-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 32px;
    color: #0f172a;
}

.edit-form label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 600;
    color: #334155;
}

.edit-form input,
.edit-form textarea,
.edit-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
}

.edit-photo {
    display: block;
    margin-bottom: 15px;
    border-radius: 8px;
}
.edit-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.edit-card {
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.edit-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 32px;
    color: #0f172a;
}

.edit-card label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 600;
    color: #334155;
}

.edit-card input,
.edit-card textarea,
.edit-card select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
}

.edit-photo {
    display: block;
    margin-bottom: 15px;
    border-radius: 8px;
}
.edit-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.edit-card {
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.edit-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 32px;
    color: #0f172a;
}

.edit-card label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 600;
    color: #334155;
}

.edit-card input,
.edit-card textarea,
.edit-card select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
}

.edit-photo {
    display: block;
    margin-bottom: 15px;
    border-radius: 8px;
}
.edit-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.edit-card {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.edit-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.edit-card {
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.edit-card h1 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    font-size: 28px;
    color: #0f172a;
}

.edit-card label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 600;
    color: #334155;
}

.edit-card input,
.edit-card textarea,
.edit-card select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
}

.edit-photo {
    display: block;
    margin-bottom: 15px;
    border-radius: 8px;
}
.dog-edit-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dog-edit-actions .btn-small {
    background: #e2e8f0;
    color: #0f172a;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.dog-edit-actions .btn-small:hover {
    background: #cbd5e1;
}
.dog-photo-card {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    overflow: hidden; /* tärkeä */
}

.dog-photo {
    width: 100%;
    height: 450px; /* kortin korkeus */
    object-fit: cover; /* rajaa siististi */
    border-radius: 0; /* poistaa ympyrän */
    display: block;
}
.btn-danger {
    background: #dc2626;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* GRID */
.training-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* CARD */
.training-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.training-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* CONTENT */
.training-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.training-card-date {
    margin: 6px 0;
    font-size: 14px;
    color: #64748b;
}

.training-card-notes {
    margin-top: 10px;
    font-size: 14px;
    color: #475569;
}
/* ADD TRAINING PAGE */

.training-add-card {
    padding: 28px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.section-description {
    color: #475569;
    font-size: 15px;
    margin-bottom: 20px;
}

.acf-form-wrapper {
    margin-top: 20px;
}

/* ACF FIELD STYLING */
.acf-field {
    margin-bottom: 18px !important;
}

.acf-label label {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
}

.acf-input input,
.acf-input textarea,
.acf-input select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    background: #f8fafc;
}

.acf-input textarea {
    min-height: 120px;
}

/* BUTTONS */
.acf-form-submit input[type="submit"] {
    background: #2563eb;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.acf-form-submit input[type="submit"]:hover {
    background: #1d4ed8;
}

/* MOBILE */
@media (max-width: 640px) {
    .training-add-card {
        padding: 20px;
    }

    .dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-small {
        width: 100%;
        text-align: center;
    }
}
/* EDIT TRAINING PAGE */

.training-edit-card {
    padding: 28px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.section-description {
    color: #475569;
    font-size: 15px;
    margin-bottom: 20px;
}

.acf-form-wrapper {
    margin-top: 20px;
}

/* ACF FIELD STYLING */
.acf-field {
    margin-bottom: 18px !important;
}

.acf-label label {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
}

.acf-input input,
.acf-input textarea,
.acf-input select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    background: #f8fafc;
}

.acf-input textarea {
    min-height: 120px;
}

/* BUTTONS */
.acf-form-submit input[type="submit"] {
    background: #2563eb;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.acf-form-submit input[type="submit"]:hover {
    background: #1d4ed8;
}

/* MOBILE */
@media (max-width: 640px) {
    .training-edit-card {
        padding: 20px;
    }

    .dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-small {
        width: 100%;
        text-align: center;
    }
}
/* DELETE TRAINING PAGE */

.delete-training-card {
    padding: 28px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.section-description {
    color: #475569;
    font-size: 15px;
    margin-bottom: 20px;
}

.btn-danger-full {
    background: #dc2626;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
}

.btn-danger-full:hover {
    background: #b91c1c;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* MOBILE */
@media (max-width: 640px) {
    .delete-training-card {
        padding: 20px;
    }

    .btn-danger-full {
        width: 100%;
    }
}
.btn-danger {
    background: #dc2626;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.btn-danger:hover {
    background: #b91c1c;
}
/* TRAINING STATS CARD */

.training-stats-card {
    padding: 28px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.stat-box h3 {
    font-size: 24px;
    margin: 0;
    color: #1e3a8a;
}

.stat-box p {
    margin: 6px 0 0;
    color: #475569;
    font-size: 14px;
}

.laji-title {
    margin-top: 25px;
    font-size: 18px;
    color: #0f172a;
}

.laji-list {
    margin-top: 10px;
    padding-left: 20px;
    color: #334155;
}

.laji-list li {
    margin-bottom: 6px;
}

/* MOBILE */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* MONTHLY TRAINING CHART */

.training-monthly-card {
    padding: 28px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.chart-container {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
}
/* GENERAL CARD STYLE */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* HEADER */
.dog-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dog-header-left h1 {
    font-size: 32px;
    margin: 0;
}

.dog-header-right .dog-photo {
    border-radius: 12px;
    width: 180px;
    height: auto;
}

/* GRID */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

/* ACTION BUTTONS */
.btn {
    background: #2563eb;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-small {
    background: #e2e8f0;
    color: #1e293b;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* MOBILE */
@media (max-width: 640px) {
    .dog-header-card {
        flex-direction: column;
        text-align: center;
    }

    .dog-header-right .dog-photo {
        width: 140px;
        margin-top: 20px;
    }
}
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.pagination .btn-small {
    background: #e2e8f0;
    color: #1e293b;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.pagination .btn-small {
    background: #e2e8f0;
    color: #1e293b;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.training-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.training-gallery-img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.training-video {
    margin-top: 20px;
}

.training-video iframe {
    width: 100%;
    height: 360px;
    border-radius: 8px;
}
#lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    animation: fadeIn 0.2s ease-in-out;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    font-size: 28px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

#lightbox-close:hover {
    background: rgba(255,255,255,0.4);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 32px;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}

#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }

.training-gallery-img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.training-gallery-img:hover {
    transform: scale(1.03);
}

#lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    animation: fadeIn 0.2s ease-in-out;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    font-size: 28px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

#lightbox-close:hover {
    background: rgba(255,255,255,0.4);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 32px;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}

#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }

.training-gallery-img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.training-gallery-img:hover {
    transform: scale(1.03);
}
.training-card-icons {
    margin-top: 10px;
    font-size: 20px;
    display: flex;
    gap: 8px;
}

.card-icon {
    opacity: 0.8;
}
.cue-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cue-table th, .cue-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.cue-table th {
    background: #f8fafc;
    text-align: left;
    font-weight: 600;
}

.btn-danger-small {
    background: #dc2626;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.btn-danger-small:hover {
    background: #b91c1c;
}

.add-cue-card {
    margin-top: 30px;
}

.cue-actions {
    display: flex;
    gap: 10px;
}

.edit-cue-btn, .delete-cue-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.edit-cue-btn:hover {
    color: #2563eb;
}

.delete-cue-btn:hover {
    color: #dc2626;
}

.edit-row td {
    background: #f8fafc;
    padding: 20px;
}

.cue-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cue-table th, .cue-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.cue-table th {
    background: #f8fafc;
    text-align: left;
    font-weight: 600;
}

.cue-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    padding: 6px;
    border-radius: 6px;
    text-decoration: none;
    color: #1e293b;
    transition: 0.2s;
}

.icon-btn:hover {
    background: #cbd5e1;
}

.icon-btn.danger {
    background: #fecaca;
    color: #b91c1c;
}

.icon-btn.danger:hover {
    background: #fca5a5;
}

.material-icons {
    font-size: 18px;
}

.add-cue-card {
    margin-top: 30px;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    background: #f2f2f2;
    margin-right: 6px;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: #e0e0e0;
}

.icon-btn.danger {
    background: #ffe5e5;
}

.icon-btn.danger:hover {
    background: #ffcccc;
}

.material-icons {
    font-size: 20px;
}
/* Palkkiomerkit-taulukko – sama tyyli kuin Vihjesanat */

.badge-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
}

.badge-table thead {
    background: #f7f7f7;
}

.badge-table th {
    text-align: left;
    padding: 12px 10px;
    font-weight: 600;
    border-bottom: 2px solid #e5e5e5;
}

.badge-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.badge-table tr:hover {
    background: #fafafa;
}

.badge-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-btn {
    background: #eee;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s;
}

.icon-btn:hover {
    background: #ddd;
}

.icon-btn.danger {
    background: #ffe5e5;
    color: #b30000;
}

.icon-btn.danger:hover {
    background: #ffcccc;
}

.goal-status-text {
    font-weight: 600;
    font-size: 14px;
    margin-top: 6px;
    display: inline-block;
}

/* Värit */
.goal-status-text.blue {
    color: #3b82f6; /* sininen */
}

.goal-status-text.orange {
    color: #f59e0b; /* oranssi */
}

.goal-status-text.green {
    color: #22c55e; /* vihreä */
}
.goal-status-text {
    font-weight: 600;
    font-size: 14px;
    margin-top: 6px;
    display: inline-block;
}

.goal-status-text.blue {
    color: #3b82f6; /* sininen */
}

.goal-status-text.orange {
    color: #f59e0b; /* oranssi */
}

.goal-status-text.green {
    color: #22c55e; /* vihreä */
}
.goal-status-text {
    font-weight: 600;
    font-size: 16px;
    margin: 6px 0 12px 0;
    display: inline-block;
}

.goal-status-text.blue {
    color: #3b82f6;
}

.goal-status-text.orange {
    color: #f59e0b;
}

.goal-status-text.green {
    color: #22c55e;
}

.training-tracker {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.training-tracker th,
.training-tracker td {
    padding: 6px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

.training-tracker .tracker-cell.done {
    background-color: #c8f7c5; /* vaalea vihreä */
    font-weight: bold;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.size-grid div {
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
}
