*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f4f5f7;
    color:#111;
    font-size:13px;
}

body.login-page{
    min-height:100vh;
    background:#000;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* SIDEBAR */

.sidebar{
    position:fixed;
    left:0;
    top:0;
    width:205px;
    height:100vh;
    background:linear-gradient(180deg,#1f1f1f,#151515);
}

.logo{
    color:white;
    font-size:24px;
    font-weight:bold;
    padding:20px 22px 34px 22px;
}

.sidebar a{
    display:flex;
    align-items:center;
    gap:10px;
    color:#eee;
    text-decoration:none;
    padding:13px 22px;
    font-size:14px;
}

.sidebar a span{
    width:18px;
    text-align:center;
}

.sidebar a:hover{
    background:#2b2b2b;
}

.sidebar a.active{
    background:#f4f5f7;
    color:#000;
    font-weight:bold;
}

.sidebar-logo-img{
    width:75px;
    height:75px;
    border-radius:50%;
    object-fit:cover;
}

.sidebar-version{
    color:white;
    text-align:center;
    font-size:11px;
    opacity:0.75;
    padding:10px 12px 0 12px;
}

/* MAIN */

.main-content{
    margin-left:205px;
    min-height:100vh;
}

.topbar{
    height:58px;
    background:white;
    border-bottom:1px solid #ddd;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 26px;
    font-size:13px;
}

.page-content{
    padding:24px 28px;
}

h1{
    margin:0 0 16px 0;
    font-size:22px;
}

h2{
    margin:18px 0 14px 0;
    font-size:20px;
}

/* CARDS */

.stats-grid.compact{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(135px,1fr));
    gap:12px;
    margin-bottom:18px;
}

.card{
    background:white;
    border-radius:9px;
    padding:14px;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
}

.card h3{
    display:flex;
    align-items:center;
    gap:7px;
    margin:0 0 14px 0;
    font-size:11px;
    color:#666;
    line-height:1.15;
}

.card p{
    margin:0;
    font-size:12px;
    font-weight:bold;
    line-height:1.15;
}

.icon{
    color:#45ad4d;
    font-size:13px;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:12px;
    margin-bottom:18px;
}

.profile-header{
    display:flex;
    align-items:center;
    gap:16px;
    background:white;
    padding:18px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    margin-bottom:20px;
}

.profile-header .avatar{
    width:58px;
    height:58px;
    border-radius:50%;
    background:#45ad4d;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    font-weight:bold;
}

.profile-header h1{
    margin:0 0 6px 0;
}

.profile-header p{
    margin:0;
    color:#666;
}

table{
    width:100%;
    border-collapse:collapse;
}

th, td{
    padding:9px 8px;
    border-bottom:1px solid #eee;
    text-align:left;
    font-size:12px;
}

th{
    color:#555;
    font-weight:bold;
    background:#f8f8f8;
}

/* CALENDAR SECTION */

.calendar-section{
    display:grid;
    grid-template-columns:520px 430px 240px;
    gap:14px;
    align-items:start;
    margin-top:8px;
    margin-bottom:28px;
    width:max-content;
}

.calendar-card{
    width:100%;
    max-width:none;
}

.month-summary-card{
    width:100%;
    max-width:none;
}

.calendar-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
}

.calendar-header button{
    border:none;
    background:#222;
    color:white;
    width:30px;
    height:30px;
    border-radius:6px;
    cursor:pointer;
    font-size:15px;
}

.calendar-selectors{
    display:flex;
    gap:7px;
}

.calendar-selectors select{
    padding:6px 8px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:12px;
    background:white;
}

.calendar-weekdays{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:5px;
    margin-bottom:6px;
    text-align:center;
    font-size:11px;
    font-weight:bold;
    color:#555;
}

.calendar-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:5px;
}

.calendar-day{
    background:#eee;
    border-radius:6px;
    padding:7px 0;
    text-align:center;
    font-size:11px;
    font-weight:bold;
}

.calendar-day.active{
    background:#45ad4d;
    color:white;
}

.calendar-empty{
    padding:7px 0;
}

/* MONTH SUMMARY */

.month-summary-card h2{
    margin:0 0 12px 0;
    font-size:17px;
}

.month-summary-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:9px;
}

.month-summary-grid div{
    background:#f4f5f7;
    padding:10px;
    border-radius:7px;
}

.month-summary-grid span{
    display:block;
    font-size:10px;
    color:#666;
    margin-bottom:6px;
}

.month-summary-grid strong{
    font-size:15px;
}

/* LOGIN */

.login-box{
    width:330px;
    margin:0 auto;
    background:white;
    padding:30px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.login-logo img{
    max-width:240px;
    height:auto;
	padding-bottom:20px;
}

.login-wrapper{
    width:100%;
    max-width:420px;
    padding:20px;

    display:flex;
    flex-direction:column;
    align-items:center;
}

.login-box h1{
    margin-top:0;
    margin-bottom:24px;
}

.login-box input{
    width:100%;
    padding:12px;
    margin-bottom:12px;
    border:1px solid #ccc;
    border-radius:6px;
}

.login-box button{
    width:100%;
    padding:12px;
    border:none;
    background:#222;
    color:white;
    border-radius:6px;
    cursor:pointer;
}

.error{
    background:#ffdede;
    color:#900;
    padding:10px;
    border-radius:6px;
    margin-bottom:12px;
}

/* RESPONSIVE */

@media(max-width:1400px){
    .calendar-section{
        grid-template-columns:500px 400px 220px;
    }
}

.streak-card h2{
    margin:0 0 12px 0;
    font-size:17px;
}

.streak-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}

.streak-grid div{
    background:#f4f5f7;
    padding:12px;
    border-radius:8px;
}

.streak-grid span{
    display:block;
    font-size:11px;
    color:#666;
    margin-bottom:6px;
}

.streak-grid strong{
    font-size:22px;
    color:#45ad4d;
}

.monthly-goals{
    margin-top:14px;
    border-top:1px solid #eee;
    padding-top:12px;
}

.monthly-goals h3{
    margin:0 0 10px 0;
    font-size:13px;
}

.goal-item{
    margin-bottom:10px;
}

.goal-item span{
    display:block;
    font-size:10px;
    color:#666;
    margin-bottom:3px;
}

.goal-item strong{
    font-size:12px;
}

.progress-bar{
    height:7px;
    background:#eee;
    border-radius:20px;
    overflow:hidden;
    margin-top:5px;
}

.progress-bar div{
    height:100%;
    width:0%;
    background:#45ad4d;
}

.streak-note{
    display:block;
    margin-top:4px;
    font-size:10px;
    color:#666;
    font-weight:normal;
}

.last-activity-box{
    background:white;
    display:inline-block;
    padding:10px 14px;
    border-radius:8px;
    margin-bottom:18px;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
    font-size:12px;
}

.last-activity-box strong{
    margin-right:6px;
}

.card small{
    display:block;
    margin-top:6px;
    font-size:10px;
    color:#666;
    font-weight:normal;
}

.status-connected {
    color: #2eaf52;
    font-weight: 600;
}

.status-disconnected {
    color: #d64545;
    font-weight: 600;
}

.table-link{
    display:inline-block;
    padding:5px 9px;
    background:#476af1;
    color:white;
    border-radius:5px;
    text-decoration:none;
    font-size:11px;
}

.table-link:hover{
    background:#45ad4d;
}

/* ACTIVITIES */

.activities-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
}

.activities-header h1{
    margin:0;
}

.activities-limit{
    background:white;
    border-radius:9px;
    padding:9px 12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    display:flex;
    align-items:center;
    gap:8px;
}

.activities-limit span{
    font-size:10px;
    color:#666;
    font-weight:bold;
    text-transform:uppercase;
}

.activities-limit select{
    padding:7px 11px;
    border-radius:20px;
    border:none;
    background:#f4f5f7;
    font-size:12px;
    font-weight:bold;
    cursor:pointer;
}

.activities-limit select:focus{
    outline:none;
}

.activity-filters{
    display:grid;
    grid-template-columns:1.35fr 1fr 1.25fr;
    gap:16px;
    margin-bottom:16px;
    align-items:start;
}

.filter-group{
    background:#f8f8f8;
    border-radius:9px;
    padding:10px;
    min-width:0;
}

.filter-group span{
    display:block;
    font-size:10px;
    color:#666;
    font-weight:bold;
    text-transform:uppercase;
    margin-bottom:8px;
}

.filter-group a{
    display:inline-block;
    padding:7px 11px;
    border-radius:20px;
    background:white;
    color:#222;
    text-decoration:none;
    font-size:12px;
    font-weight:bold;
    margin:0 5px 6px 0;
    white-space:nowrap;
}

.filter-group a.active,
.filter-group a:hover{
    background:#222;
    color:white;
}

.activity-card-wide{
    background:white;
    border-radius:10px;
    padding:16px;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    display:grid;
    grid-template-columns:48px 1.8fr 1.4fr 4fr auto;
    align-items:center;
    gap:16px;
    margin-bottom:12px;
}

.activity-icon{
    width:46px;
    height:46px;
    border-radius:12px;
    background:#45ad4d;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:bold;
    flex-shrink:0;
}

.activity-title-row{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.activity-name-block h2{
    margin:0;
    font-size:16px;
}

.activity-location-block{
    font-size:12px;
    line-height:1.7;
    border-left:1px solid #eee;
    padding-left:16px;
}

.activity-metrics-wide{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:0;
    border-left:1px solid #eee;
    border-right:1px solid #eee;
}

.metric-item{
    text-align:center;
    padding:0 12px;
    border-right:1px solid #eee;
}

.metric-item:last-child{
    border-right:none;
}

.metric-item strong{
    display:block;
    font-size:13px;
    margin-bottom:4px;
}

.metric-item span{
    display:block;
    font-size:11px;
    color:#666;
}

.activity-action{
    flex-shrink:0;
}

.activity-badge{
    display:inline-block;
    padding:4px 8px;
    border-radius:20px;
    font-size:10px;
    font-weight:bold;
    color:white;
}

.badge-workout{
    background:#316be8;
}

.badge-race{
    background:#d64545;
}

.badge-climb{
    background:#8c4de8;
}

.badge-event{
    background:#e89531;
}

.badge-ride{
    background:#45ad4d;
}

.table-link{
    display:inline-block;
    padding:7px 11px;
    background:#fb6418;
    color:white;
    border-radius:6px;
    text-decoration:none;
    font-size:11px;
    font-weight:bold;
}

.table-link:hover{
    background:#45ad4d;
}

/* ACTIVITY DETAIL */

.activity-hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:18px;
}

.activity-hero h1{
    margin:6px 0 8px 0;
    font-size:26px;
}

.activity-hero-meta{
    font-size:12px;
    color:#666;
    font-weight:bold;
}

.activity-hero-stats{
    display:flex;
    gap:12px;
}

.activity-hero-stats div{
    background:#f4f5f7;
    border-radius:10px;
    padding:12px 16px;
    min-width:90px;
    text-align:center;
}

.activity-hero-stats strong{
    display:block;
    font-size:20px;
}

.activity-hero-stats span{
    display:block;
    font-size:10px;
    color:#666;
    margin-top:4px;
}

.detail-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:16px;
    margin-top:16px;
}

@media(max-width:1100px){
    .activities-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .activity-filters{
        grid-template-columns:1fr;
    }

    .activity-card-wide{
        grid-template-columns:48px 1fr;
        align-items:start;
    }

    .activity-location-block,
    .activity-metrics-wide,
    .activity-action{
        grid-column:2;
    }

    .activity-metrics-wide{
        grid-template-columns:repeat(2,1fr);
        border-left:none;
        border-right:none;
        gap:10px;
    }

    .metric-item{
        border-right:none;
        background:#f8f8f8;
        border-radius:8px;
        padding:8px;
    }
}

@media(max-width:900px){
    .activity-hero{
        flex-direction:column;
        align-items:flex-start;
    }

    .activity-hero-stats{
        width:100%;
        flex-wrap:wrap;
    }

    .detail-grid{
        grid-template-columns:1fr;
    }
}

.activities-counter{
    margin-bottom:14px;
    font-size:12px;
    color:#666;
    font-weight:bold;
}

.activity-actions{
    display:flex;
    flex-direction:column;
    gap:6px;
    align-items:flex-end;
}

.fit-link{
    background:#45ad4d;
}

.fit-link:hover{
    background:#2f8c36;
}

.activity-map-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:16px;
    margin-bottom:18px;
}

.activity-world-map-card{
    overflow:hidden;
}

.activity-world-map{
    width:100%;
    max-height:420px;
    object-fit:contain;
    background:#f4f5f7;
    border-radius:8px;
    padding:8px;
}

.fit-link{
    margin-top:10px;
    background:#d64545;
}

.fit-link:hover{
    background:#2f8c36;
}

@media(max-width:900px){
    .activity-map-grid{
        grid-template-columns:1fr;
    }
}

.activity-hero-premium{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.activity-hero-left{
    display:flex;
    align-items:center;
    gap:16px;
}

.activity-type-icon{
    width:58px;
    height:58px;
    border-radius:14px;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    font-weight:bold;
    flex-shrink:0;
}

.activity-hero-subtitle{
    font-size:13px;
    color:#666;
    margin-bottom:8px;
}

.map-card-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:10px;
}

.map-card-header h2{
    margin:0 0 4px 0;
}

.map-card-header p{
    margin:0;
    color:#666;
    font-size:12px;
    font-weight:bold;
}

.map-card-badge{
    background:#f4f5f7;
    border-radius:20px;
    padding:7px 10px;
    font-size:11px;
    font-weight:bold;
    color:#333;
}

.activity-map-wrapper{
    position:relative;
    overflow:hidden;
    border-radius:10px;
    background:#eef0f3;
    min-height:430px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.activity-world-map{
    width:100%;
    height:430px;
    object-fit:contain;
    display:block;
}

.activity-world-map-card .map-card-header{
    margin-bottom:12px;
}

.map-overlay{
    left:18px;
    bottom:18px;
}

.map-overlay strong{
    display:block;
    font-size:14px;
    margin-bottom:4px;
}

.map-overlay span{
    font-size:12px;
    color:#555;
    font-weight:bold;
}

.export-card p{
    margin-bottom:12px;
}

.main-metric p{
    font-size:16px;
    color:#111;
}

@media(max-width:900px){
    .activity-hero-premium{
        flex-direction:column;
        align-items:flex-start;
    }

    .activity-hero-left{
        align-items:flex-start;
    }

    .activity-world-map{
        height:300px;
    }
}

.internal-details summary{
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
    list-style:none;
}

.internal-details summary::-webkit-details-marker{
    display:none;
}

.internal-details summary::after{
    content:"Mostrar";
    float:right;
    font-size:11px;
    background:#f4f5f7;
    padding:5px 9px;
    border-radius:20px;
    color:#555;
}

.internal-details[open] summary{
    margin-bottom:14px;
}

.internal-details[open] summary::after{
    content:"Ocultar";
}

.map-summary-chips{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:8px;
    margin-bottom:12px;
}

.map-summary-chips div{
    background:#f4f5f7;
    border-radius:9px;
    padding:9px 10px;
    text-align:center;
}

.map-summary-chips strong{
    display:block;
    font-size:13px;
    margin-bottom:3px;
}

.map-summary-chips span{
    display:block;
    font-size:10px;
    color:#666;
    font-weight:bold;
}

.map-overlay-large{
    width:260px;
    left:auto;
    right:18px;
    bottom:18px;
}

.map-overlay-label{
    display:inline-block;
    background:#222;
    color:white;
    border-radius:20px;
    padding:4px 8px;
    font-size:10px;
    font-weight:bold;
    margin-bottom:8px;
}

.map-overlay-large strong{
    font-size:15px;
    line-height:1.25;
}

.map-overlay-meta{
    margin-top:6px;
    color:#666;
    font-size:11px;
    font-weight:bold;
}

.map-overlay-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:7px;
    margin-top:10px;
}

.map-overlay-grid div{
    background:#f4f5f7;
    border-radius:8px;
    padding:8px;
    text-align:center;
}

.map-overlay-grid strong{
    display:block;
    font-size:14px;
}

.map-overlay-grid span{
    display:block;
    margin-top:3px;
    font-size:10px;
    color:#666;
}

@media(max-width:1100px){
    .map-summary-chips{
        grid-template-columns:repeat(2,1fr);
    }

    .map-overlay-large{
        position:static;
        width:auto;
        margin:12px;
    }
}

.activity-map-layout{
    display:grid;
    grid-template-columns:1.6fr 340px;
    gap:18px;
    align-items:stretch;
}

.activity-map-left{
    background:#eef0f3;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:430px;
    overflow:hidden;
}

.activity-map-right{
    background:#f8f8f8;
    border-radius:10px;
    padding:20px;
    display:flex;
    flex-direction:column;
}

.activity-map-world{
    font-size:12px;
    font-weight:bold;
    color:#666;
    margin-bottom:6px;
}

.activity-map-right h3{
    margin:0;
    font-size:16px;
    line-height:1.15;
}

.activity-map-stats h3{
    display:flex;
    align-items:center;
    gap:6px;
    margin:0 0 8px 0;
    font-size:11px;
    color:#555;
    line-height:1.15;
}

.activity-map-stats h3 svg{
    width:14px;
    height:14px;
    color:#45ad4d;
    stroke-width:2.2;
    flex-shrink:0;
    position:relative;
    top:-1px;
}

.activity-map-meta{
    margin-top:8px;
    color:#666;
    font-size:13px;
    font-weight:bold;
}

.activity-route-name{
    margin-top:12px;
    background:#eceff3;
    border-radius:20px;
    padding:7px 12px;
    font-size:12px;
    font-weight:bold;
    width:fit-content;
}

.activity-map-stats{
    margin-top:20px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.activity-map-stats div{
    background:white;
    border-radius:10px;
    padding:14px;
}

.activity-map-stats strong{
    display:block;
    font-size:14px;
    line-height:1;
    margin-bottom:5px;
}

.activity-map-stats span{
    display:block;
    font-size:11px;
    color:#666;
    font-weight:bold;
}

.activity-map-stats small{
    display:block;
    margin-top:6px;
    font-size:11px;
    color:#999;
}

@media(max-width:1100px){
    .activity-map-layout{
        grid-template-columns:1fr;
    }

    .activity-map-left{
        min-height:320px;
    }
}

.export-file-name{
    background:#f4f5f7;
    border-radius:9px;
    padding:12px;
    margin-bottom:12px;
}

.export-file-name span,
.export-info-grid span{
    display:block;
    font-size:10px;
    color:#666;
    font-weight:bold;
    text-transform:uppercase;
    margin-bottom:5px;
}

.export-file-name strong{
    font-size:13px;
    word-break:break-all;
}

.export-info-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-bottom:14px;
}

.export-info-grid div{
    background:#f8f8f8;
    border-radius:9px;
    padding:10px;
}

.export-info-grid strong{
    font-size:12px;
}

.export-actions{
    margin-bottom:12px;
}

.export-card small{
    color:#666;
    font-size:11px;
    line-height:1.4;
}

.internal-details-card{
    min-height:auto;
}

.internal-details summary{
    cursor:pointer;
}

.insights-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:16px;
    margin-bottom:18px;
}

.insight-card h2{
    margin-top:0;
}

.insight-main{
    font-size:17px;
    font-weight:bold;
    margin-bottom:10px;
}

.insight-card p{
    margin-bottom:7px;
    font-size:12px;
    line-height:1.4;
}

.insight-list{
    margin:0;
    padding-left:18px;
}

.insight-list li{
    margin-bottom:8px;
    font-size:12px;
    font-weight:bold;
    line-height:1.4;
}

.records-list li{
    color:#111;
}

td small{
    display:block;
    margin-top:4px;
    font-size:10px;
    color:#777;
    font-weight:normal;
}

@media(max-width:1100px){
    .insights-grid{
        grid-template-columns:1fr;
    }
}

.activity-data-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.activity-data-grid div{
    background:#f8f8f8;
    border-radius:9px;
    padding:12px;
}

.activity-data-grid span{
    display:block;
    font-size:10px;
    color:#666;
    font-weight:bold;
    text-transform:uppercase;
    margin-bottom:6px;
}

.activity-data-grid strong{
    display:block;
    font-size:13px;
}

@media(max-width:900px){
    .activity-data-grid{
        grid-template-columns:1fr;
    }
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 38px;
    background: #ffffff;
    min-width: 160px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 100;
    overflow: hidden;
}

.user-menu-dropdown a {
    display: block;
    padding: 10px 14px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
}

.user-menu-dropdown a:hover {
    background: #f4f5f7;
}

.user-menu:hover .user-menu-dropdown {
    display: block;
}

/* CALENDAR PAGE */

.calendar-page-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:18px;
}

.calendar-page-header h1{
    margin-bottom:6px;
}

.calendar-page-header p{
    margin:0;
    color:#666;
    font-size:12px;
    font-weight:bold;
}

.calendar-main-controls{
    display:flex;
    align-items:center;
    gap:8px;
    background:white;
    padding:10px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
}

.calendar-main-controls button{
    border:none;
    background:#222;
    color:white;
    width:32px;
    height:32px;
    border-radius:7px;
    cursor:pointer;
    font-size:15px;
}

.calendar-main-controls button:hover{
    background:#45ad4d;
}

.calendar-main-controls select{
    padding:8px 10px;
    border:1px solid #ddd;
    border-radius:7px;
    background:white;
    font-size:12px;
    font-weight:bold;
}

.calendar-double-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-bottom:18px;
}

.big-calendar-card{
    padding:18px;
}

.big-calendar-card.selected-month{
    border:2px solid #45ad4d;
}

.big-calendar-title{
    font-size:18px;
    font-weight:bold;
    margin-bottom:14px;
}

.big-calendar-weekdays{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:6px;
    margin-bottom:7px;
    text-align:center;
    font-size:11px;
    font-weight:bold;
    color:#666;
}

.big-calendar-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:6px;
}

.big-calendar-day,
.big-calendar-empty{
    min-height:82px;
    border-radius:9px;
}

.big-calendar-day{
    background:#f4f5f7;
    padding:8px;
    position:relative;
    border:1px solid transparent;
}

.big-calendar-day.has-activity{
    background:#edf8ef;
    border-color:#45ad4d;
    cursor:pointer;
}

.big-calendar-day.has-activity:hover{
    background:#dff3e2;
}

.big-calendar-day-number{
    font-size:12px;
    font-weight:bold;
}

.big-calendar-activity-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#45ad4d;
    margin-top:8px;
}

.big-calendar-day-stats{
    position:absolute;
    left:8px;
    right:8px;
    bottom:8px;
    font-size:10px;
    line-height:1.25;
    color:#333;
    font-weight:bold;
}

.calendar-bottom-layout{
    display:grid;
    grid-template-columns:380px 1fr;
    gap:18px;
}

.calendar-month-detail h2,
.calendar-day-detail h2{
    margin-top:0;
    font-size:17px;
}

.calendar-detail-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.calendar-detail-grid div{
    background:#f4f5f7;
    border-radius:9px;
    padding:12px;
}

.calendar-detail-grid span{
    display:block;
    font-size:10px;
    color:#666;
    font-weight:bold;
    text-transform:uppercase;
    margin-bottom:6px;
}

.calendar-detail-grid strong{
    display:block;
    font-size:16px;
}

.selected-day-content p{
    margin:0;
    color:#666;
    font-size:12px;
    font-weight:bold;
}

.selected-day-activity{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding:12px;
    border-radius:9px;
    background:#f4f5f7;
    margin-bottom:10px;
}

.selected-day-activity strong{
    display:block;
    font-size:13px;
    margin-bottom:5px;
}

.selected-day-activity span{
    display:block;
    font-size:11px;
    color:#666;
    font-weight:bold;
}

@media(max-width:1200px){
    .calendar-double-layout,
    .calendar-bottom-layout{
        grid-template-columns:1fr;
    }

    .calendar-page-header{
        flex-direction:column;
    }
}

.big-calendar-dots{
    display:flex;
    gap:4px;
    margin-top:8px;
    flex-wrap:wrap;
}

.big-calendar-activity-dot{
    display:block;
    width:8px;
    height:8px;
    border-radius:50%;
}

.big-calendar-activity-dot.badge-workout{
    background:#316be8;
}

.big-calendar-activity-dot.badge-race{
    background:#d64545;
}

.big-calendar-activity-dot.badge-climb{
    background:#8c4de8;
}

.big-calendar-activity-dot.badge-event{
    background:#e89531;
}

.big-calendar-activity-dot.badge-ride{
    background:#45ad4d;
}

.selected-day-activity{
    display:grid;
    grid-template-columns:46px 1.5fr 1.1fr 3fr auto;
    align-items:center;
    gap:14px;
    padding:12px;
    border-radius:10px;
    background:#f4f5f7;
    margin-bottom:10px;
}

.calendar-activity-icon{
    width:46px;
    height:46px;
    border-radius:12px;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:bold;
}

.calendar-activity-main h2{
    margin:0;
    font-size:15px;
}

.calendar-activity-location{
    font-size:12px;
    line-height:1.6;
    border-left:1px solid #ddd;
    padding-left:14px;
}

.calendar-activity-metrics{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    border-left:1px solid #ddd;
    border-right:1px solid #ddd;
}

.calendar-activity-metrics div{
    text-align:center;
    padding:0 9px;
    border-right:1px solid #ddd;
}

.calendar-activity-metrics div:last-child{
    border-right:none;
}

.calendar-activity-metrics strong{
    display:block;
    font-size:12px;
    margin-bottom:4px;
}

.calendar-activity-metrics span{
    display:block;
    font-size:10px;
    color:#666;
    font-weight:bold;
}

.calendar-activity-actions{
    display:flex;
    flex-direction:column;
    gap:6px;
    align-items:flex-end;
}

@media(max-width:1200px){
    .selected-day-activity{
        grid-template-columns:46px 1fr;
        align-items:start;
    }

    .calendar-activity-location,
    .calendar-activity-metrics,
    .calendar-activity-actions{
        grid-column:2;
    }

    .calendar-activity-metrics{
        grid-template-columns:repeat(2,1fr);
        border-left:none;
        border-right:none;
        gap:8px;
    }

    .calendar-activity-metrics div{
        border-right:none;
        background:white;
        border-radius:8px;
        padding:8px;
    }

    .calendar-activity-actions{
        align-items:flex-start;
    }
}

.activity-badge,
.activity-badge.badge-workout,
.activity-badge.badge-race,
.activity-badge.badge-climb,
.activity-badge.badge-event,
.activity-badge.badge-ride{
    color:white !important;
}

.calendar-activity-icon.badge-workout,
.calendar-activity-icon.badge-race,
.calendar-activity-icon.badge-climb,
.calendar-activity-icon.badge-event,
.calendar-activity-icon.badge-ride{
    color:white !important;
}

.selected-day-panel{
    margin-bottom:18px;
    border-left:4px solid #45ad4d;
}

.selected-day-panel-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}

.selected-day-panel-header h2{
    margin:0;
    font-size:17px;
}

.selected-day-panel-header button{
    border:none;
    background:#222;
    color:white;
    border-radius:7px;
    padding:7px 10px;
    cursor:pointer;
    font-size:12px;
    font-weight:bold;
}

.selected-day-panel-header button:hover{
    background:#45ad4d;
}

.big-calendar-day,
.big-calendar-empty{
    min-height:58px;
}

.big-calendar-day{
    padding:7px;
}

.big-calendar-day-compact{
    display:grid;
    grid-template-columns:10px 1fr 1fr 1fr;
    align-items:center;
    gap:5px;
    margin-top:10px;
    font-size:10px;
    font-weight:bold;
    color:#333;
    white-space:nowrap;
}

.big-calendar-day-compact .big-calendar-activity-dot{
    width:8px;
    height:8px;
    margin:0;
}

.big-calendar-day-stats,
.big-calendar-dots{
    display:none;
}

.big-calendar-day,
.big-calendar-empty{
    min-height:72px;
}

.big-calendar-day{
    padding:6px 7px;
}

.big-calendar-day-activities{
    margin-top:7px;
    display:flex;
    flex-direction:column;
    gap:5px;
}

.big-calendar-day-activity-line{
    font-size:9px;
    font-weight:bold;
    line-height:1.15;
}

.big-calendar-line-top{
    display:grid;
    grid-template-columns:9px 1fr;
    align-items:center;
    gap:5px;
    color:#333;
}

.big-calendar-line-bottom{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:5px;
    padding-left:14px;
    margin-top:2px;
    color:#666;
}

.big-calendar-day-activity-line .big-calendar-activity-dot{
    width:8px;
    height:8px;
    margin:0;
}

.big-calendar-day-compact,
.big-calendar-day-stats,
.big-calendar-dots{
    display:none !important;
}

/* MINI CALENDAR */

.mini-calendar-wrapper{
    margin-top:18px;
    border-top:1px solid #eee;
    padding-top:14px;
}

.mini-calendar-wrapper h3{
    margin:0 0 12px 0;
    font-size:14px;
}

.mini-calendar-weekdays{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:5px;
    margin-bottom:6px;
    text-align:center;
    font-size:10px;
    font-weight:bold;
    color:#666;
}

.mini-calendar-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:5px;
}

.mini-calendar-day,
.mini-calendar-empty{
    min-height:42px;
    border-radius:7px;
}

.mini-calendar-day{
    background:#f4f5f7;
    padding:5px;
    position:relative;
    border:1px solid transparent;
}

.mini-calendar-day.has-activity{
    background:#edf8ef;
    border-color:#45ad4d;
    cursor:pointer;
}

.mini-calendar-day.has-activity:hover{
    background:#dff3e2;
}

.mini-calendar-day-number{
    display:block;
    font-size:10px;
    font-weight:bold;
}

.mini-calendar-dots{
    position:absolute;
    left:5px;
    right:5px;
    bottom:5px;
    display:flex;
    gap:3px;
    flex-wrap:wrap;
}

.mini-calendar-dot{
    width:6px;
    height:6px;
    border-radius:50%;
    display:block;
}

.mini-calendar-dot.badge-workout{
    background:#316be8;
}

.mini-calendar-dot.badge-race{
    background:#d64545;
}

.mini-calendar-dot.badge-climb{
    background:#8c4de8;
}

.mini-calendar-dot.badge-event{
    background:#e89531;
}

.mini-calendar-dot.badge-ride{
    background:#45ad4d;
}

/* SIDEBAR COLLAPSE */

.logo-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px 14px 24px 22px;
}

.logo-row .logo{
    padding:0;
}

.sidebar-toggle{
    width:30px;
    height:30px;
    border:none;
    border-radius:7px;
    background:#2b2b2b;
    color:white;
    cursor:pointer;
    font-size:15px;
}

.sidebar-toggle:hover{
    background:#45ad4d;
}

.sidebar{
    display:flex;
    flex-direction:column;
}

.sidebar-nav{
    flex:1;
}

.sidebar-bottom{
    border-top:1px solid rgba(255,255,255,0.08);
    padding:8px 0 14px 0;
}

body.sidebar-collapsed .sidebar{
    width:68px;
}

body.sidebar-collapsed .main-content{
    margin-left:68px;
}

body.sidebar-collapsed .logo{
    display:none;
}

body.sidebar-collapsed .logo-row{
    justify-content:center;
    padding:20px 0 24px 0;
}

body.sidebar-collapsed .sidebar a{
    justify-content:center;
    padding:13px 0;
    font-size:0;
    gap:0;
}

body.sidebar-collapsed .sidebar-toggle{
    width:34px;
}

body.sidebar-collapsed .sidebar-version{
    display:none;
}

body.sidebar-collapsed .sidebar-logo-img{
    display:none;
}

/* =========================
   SETTINGS
========================= */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.page-header h1 {
    margin-bottom: 6px;
}

.page-subtitle {
    color: #777;
    margin: 0;
    font-size: 14px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.settings-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #ebebeb;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.settings-card-muted {
    opacity: 0.82;
}

.settings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.settings-card h2 {
    margin: 0;
    font-size: 22px;
}

.settings-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
}

.settings-status {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f7ea;
    color: #2d8c3a;
    font-weight: 600;
    white-space: nowrap;
}

.settings-status.muted {
    background: #f1f1f1;
    color: #777;
}

.settings-user-box {
    background: #f7f8f7;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.settings-button {
    display: inline-block;
    border: none;
    background: #45ad4d;
    color: white;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.18s;
    font-size: 14px;
}

.settings-button:hover {
    background: #399441;
}

.settings-button.secondary {
    background: #ececec;
    color: #333;
}

.settings-button.secondary:hover {
    background: #dddddd;
}

.settings-button.danger {
    background: #d9534f;
}

.settings-button.danger:hover {
    background: #bd3f3b;
}

.inline-form {
    display: inline-block;
    margin-left: 8px;
}

.settings-alerts {
    margin-bottom: 18px;
}

.settings-alert {
    background: #e8f7ea;
    color: #256f2f;
    border: 1px solid #ccefd2;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* =========================
   MODALS
========================= */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    animation: modalShow 0.18s ease;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.modal-header button {
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    color: #777;
}

.modal-header button:hover {
    color: #000;
}

.modal-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
    margin-top: 14px;
}

.modal-box input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-box input:focus {
    outline: none;
    border-color: #45ad4d;
    box-shadow: 0 0 0 3px rgba(69, 173, 77, 0.12);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {

    .settings-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .modal-box {
        padding: 20px;
        border-radius: 18px;
    }

    .settings-card {
        padding: 20px;
    }

}

.inline-form.first {
    margin-left: 0;
    margin-right: 8px;
}

.settings-data-list {
    background: #f7f8f7;
    border-radius: 12px;
    overflow: hidden;
}

.settings-data-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    border-bottom: 1px solid #e7e7e7;
    font-size: 14px;
}

.settings-data-row:last-child {
    border-bottom: none;
}

.settings-data-row span {
    color: #666;
}

.settings-data-row strong {
    color: #222;
    text-align: right;
}

.settings-status-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.settings-status-stack form {
    margin: 0;
}

.settings-status.warning {
    background: #fff4df;
    color: #b36b00;
}

.settings-status.clickable {
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.settings-status.clickable:hover {
    background: #ffe8b8;
}

.settings-alert.error {
    background: #fdeaea;
    color: #a02727;
    border-color: #f3bcbc;
}

.settings-alert.success {
    background: #e8f7ea;
    color: #256f2f;
    border-color: #ccefd2;
}

.settings-section-title {
    font-size: 15px;
    margin: 18px 0 10px;
    color: #333;
}

.user-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 18px;
}

.user-data-block h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #222;
}

@media (max-width: 900px) {
    .user-data-grid {
        grid-template-columns: 1fr;
    }
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.record-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #ececec;
}

.record-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.record-value span {
    font-size: 13px;
    font-weight: 500;
    color: #777;
}

.record-card p {
    font-size: 13px;
    margin: 4px 0;
    color: #444;
}

.record-card small {
    font-size: 11px;
    color: #888;
}

.record-card .table-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
}


/* =========================
   ACHIEVEMENTS
========================= */

.achievement-summary {
    margin-bottom: 30px;
	margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: #ececec;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar div {
    height: 100%;
    background: #45ad4d;
    border-radius: 999px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #ececec;
    background: #fff;
}

.achievement-card.unlocked {
    border-left: 5px solid #45ad4d;
}

.achievement-card.pending {
    opacity: 0.55;
    border-left: 5px solid #bbb;
}

.achievement-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #45ad4d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.achievement-card.pending .achievement-icon {
    background: #999;
}

.achievement-card h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #222;
}

.achievement-card p {
    margin: 0;
    font-size: 13px;
    color: #777;
}

.pending-achievements {
    margin-top: 35px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #ececec;
    padding: 18px;
}

.pending-achievements summary {
    cursor: pointer;
    font-weight: 600;
    color: #444;
    font-size: 15px;
}

.pending-list {
    margin-top: 20px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .achievement-grid {
        grid-template-columns: 1fr;
    }
	
}

.section-title {
    font-size: 18px;
    margin: 25px 0 10px;
}

/* =========================
   PR'S
========================= */

.prs-page {
    padding: 0;
}

.prs-header {
    margin-bottom: 18px;
}

.prs-header h1 {
    font-size: 22px;
    margin: 0 0 10px 0;
}

.prs-header p {
    color: #777;
    font-size: 14px;
    margin: 0;
}

.prs-section {
    margin-bottom: 26px;
}

.section-header {
    margin-bottom: 12px;
    border-bottom: none;
    padding-bottom: 0;
}

.section-header h2 {
    font-size: 20px;
    margin: 0;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 12px;
}

.record-card {
    background: white;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.record-card:hover {
    transform: none;
    border-color: #e0e0e0;
}

.record-value {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 9px;
}

.record-value span {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    margin-left: 3px;
}

.record-activity {
    font-size: 12px;
    line-height: 1.25;
    margin-bottom: 5px;
}

.record-date {
    font-size: 11px;
    color: #777;
    margin-bottom: 10px;
}

.record-link {
    display: inline-block;
    padding: 6px 10px;
    background: #fb6418;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
}

.record-link:hover {
    background: #45ad4d;
}

.power-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 12px;
}

.power-card {
    background: white;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.power-value {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.power-value span {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    margin-left: 3px;
}

.power-wkg {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}












/* =========================
   TEST ICONS
========================= */

.test-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.test-icon-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.test-icon-card svg {
    width: 24px;
    height: 24px;
    color: #45ad4d;
    stroke-width: 2;
}

.test-icon-card strong {
    font-size: 13px;
}

.test-icon-card span {
    font-size: 11px;
    color: #777;
}

/* =========================
   PR'S ICONS
========================= */

.record-label,
.power-label{
    display:flex;
    align-items:center;
    gap:8px;
    line-height:1;
    font-size:12px;
    color:#555;
    font-weight:bold;
    margin-bottom:9px;
}

.record-label svg,
.power-label svg{
    width:18px;
    height:18px;
    stroke-width:2.2;
    color:#45ad4d;
    flex-shrink:0;
    position:relative;
    top:-1px;
}

.record-label span,
.power-label span{
    display:flex;
    align-items:center;
}

/* =========================
   GOALS ICONS
========================= */

.card h3 svg{
    width:15px;
    height:15px;
    color:#45ad4d;
    stroke-width:2.2;
    flex-shrink:0;
    position:relative;
    top:-1px;
}

/* =========================
   CALENDAR SUMMARY ICONS
========================= */

.calendar-detail-grid span{
    display:flex;
    align-items:center;
    gap:6px;
}

.calendar-detail-grid span svg{
    width:14px;
    height:14px;
    color:#45ad4d;
    stroke-width:2.2;
    flex-shrink:0;
    position:relative;
    top:-1px;
}

/* =========================
   DASHBOARD ICONS
========================= */

.dashboard-icons h3,
.month-summary-grid span,
.streak-grid span{
    display:flex;
    align-items:center;
    gap:7px;
}

.dashboard-icons h3 svg,
.month-summary-grid span svg,
.streak-grid span svg{
    width:14px;
    height:14px;
    color:#45ad4d;
    stroke-width:2.2;
    flex-shrink:0;
    position:relative;
    top:-1px;
}

.dashboard-icons h3,
.month-summary-grid span,
.streak-grid span,
.monthly-goals .goal-item span{
    display:flex;
    align-items:center;
    gap:7px;
}

.dashboard-icons h3 svg,
.month-summary-grid span svg,
.streak-grid span svg,
.monthly-goals .goal-item span svg{
    width:14px;
    height:14px;
    color:#45ad4d;
    stroke-width:2.2;
    flex-shrink:0;
    position:relative;
    top:-1px;
}

/* =========================
   DASHBOARD LAYOUT UNIFIED
========================= */

.dashboard-main-grid{
    display:grid;
    grid-template-columns:520px 260px 360px 260px;
    gap:14px;
    align-items:start;
    margin-top:8px;
    margin-bottom:28px;
}

.dashboard-panel-card h2,
.calendar-card h2,
.month-summary-card h2,
.streak-card h2{
    margin:0 0 12px 0;
    font-size:17px;
}

.dashboard-mini-grid,
.month-summary-grid,
.streak-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}

.dashboard-mini-grid div,
.month-summary-grid div,
.streak-grid div{
    background:#f4f5f7;
    padding:12px;
    border-radius:8px;
}

.dashboard-mini-grid span,
.month-summary-grid span,
.streak-grid span{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:10px;
    color:#666;
    font-weight:bold;
    text-transform:uppercase;
    margin-bottom:6px;
}

.dashboard-mini-grid span svg,
.month-summary-grid span svg,
.streak-grid span svg{
    width:14px;
    height:14px;
    color:#45ad4d;
    stroke-width:2.2;
    flex-shrink:0;
    position:relative;
    top:-1px;
}

.dashboard-mini-grid strong,
.month-summary-grid strong,
.streak-grid strong{
    display:block;
    font-size:16px;
    color:#111;
}

.dashboard-mini-grid .progress-bar{
    margin-top:8px;
}

@media(max-width:1500px){
    .dashboard-main-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:900px){
    .dashboard-main-grid{
        grid-template-columns:1fr;
    }
}

/* DASHBOARD UNIFIED CARDS */

.dashboard-main-grid{
    display:grid;
    grid-template-columns:520px 1fr 1fr 1fr;
    gap:12px;
    align-items:start;
}

.dashboard-panel-card{
    background:white;
    border-radius:10px;
    padding:14px;
    border:1px solid #e8e8e8;
    box-shadow:0 2px 10px rgba(0,0,0,0.04);
}

.dashboard-panel-card h2,
.month-summary-card h2,
.streak-card h2{
    margin:0 0 14px 0;
    font-size:15px;
}

.month-summary-card,
.streak-card{
    background:white;
    border-radius:10px;
    padding:14px;
    border:1px solid #e8e8e8;
    box-shadow:0 2px 10px rgba(0,0,0,0.04);
}

.month-summary-grid div,
.streak-grid div{
    background:#f4f5f7;
    border-radius:8px;
    padding:10px;
}

.month-summary-grid span,
.streak-grid span,
.goal-item span{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:10px;
    color:#666;
    margin-bottom:6px;
    font-weight:bold;
}

.month-summary-grid strong,
.streak-grid strong,
.goal-item strong{
    font-size:15px;
}

.month-summary-grid i,
.streak-grid i,
.goal-item i{
    width:14px;
    height:14px;
    color:#45ad4d;
    stroke-width:2.2;
}

.goal-item{
    margin-bottom:14px;
}

.goal-item:last-child{
    margin-bottom:0;
}

/* =========================
   DASHBOARD CALENDAR + GOALS
========================= */

.dashboard-calendar-row{
    display:grid;
    grid-template-columns:520px 320px;
    gap:14px;
    align-items:start;
    margin-bottom:22px;
}

.dashboard-goals-card{
    width:100%;
    min-width:420px;
}

.dashboard-goals-card h2{
    margin:0 0 14px 0;
    font-size:17px;
}

.goal-item{
    background:#f4f5f7;
    border-radius:8px;
    padding:10px;
    margin-bottom:10px;
}

.goal-item:last-child{
    margin-bottom:0;
}

.goal-item span{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:12px;
    color:#000000;
    font-weight:bold;
    margin-bottom:6px;
}

.goal-item span svg{
    width:14px;
    height:14px;
    color:#45ad4d;
    stroke-width:2.2;
    flex-shrink:0;
}

.goal-item strong{
    display:block;
    font-size:13px;
    margin-bottom:7px;
}

.goal-item .progress-bar{
    height:7px;
    margin-top:6px;
}

@media(max-width:1100px){
    .dashboard-calendar-row{
        grid-template-columns:1fr;
    }
}

.goal-label{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:14px;
    font-weight:600;
    color:#666;
}

.goal-value{
    display:block;
    white-space:nowrap;
}

.goal-value span{
    display:inline !important;
    font-size:inherit !important;
    color:inherit !important;
    margin:0 !important;
}

.topbar-help-link{
    margin-left:6px;
    color:#45ad4d;
    text-decoration:none;
    font-weight:bold;
}

.topbar-help-link:hover{
    text-decoration:underline;
}

.sidebar a i{
    width:15px;
    height:15px;
    flex-shrink:0;
    color:inherit;
}

body.sidebar-collapsed .sidebar a i{
    width:17px;
    height:17px;
}

body.sidebar-collapsed .sidebar a{
    font-size:0;
}

body.sidebar-collapsed .sidebar-version{
    display:none;
}

/* SIDEBAR ICONS - LUCIDE */

.sidebar a svg{
    width:14px !important;
    height:14px !important;
    stroke-width:2.1;
    flex-shrink:0;
    color:inherit;
}

body.sidebar-collapsed .sidebar a svg{
    width:16px !important;
    height:16px !important;
}

.profile-avatar-wrapper{
    position:relative;
    width:90px;
    height:90px;
}

.profile-avatar-img{
    width:90px;
    height:90px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid white;
}

.avatar-edit-button{
    position:absolute;
    right:-2px;
    bottom:-2px;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#45ad4d;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 2px 10px rgba(0,0,0,0.15);
}


.profile-avatar-wrapper{
    position:relative;
    width:90px;
    height:90px;
    flex-shrink:0;
}

.profile-avatar-img,
.profile-avatar-placeholder{
    width:90px;
    height:90px;
    border-radius:50%;
    object-fit:cover;
}

.profile-avatar-placeholder{
    background:#45ad4d;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    font-weight:bold;
}

.avatar-edit-button{
    position:absolute;
    right:-2px;
    bottom:-2px;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#45ad4d;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 2px 10px rgba(0,0,0,0.18);
}

.avatar-edit-button input{
    display:none;
}

.avatar-edit-button svg{
    width:15px;
    height:15px;
}

.topbar-avatar{
    width:35px;
    height:35px;
    border-radius:50%;
    object-fit:cover;
    margin-right:8px;
    flex-shrink:0;
}

.topbar-avatar-placeholder{
    width:28px;
    height:28px;
    border-radius:50%;
    background:#45ad4d;
    color:white;
    display:none;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:bold;
    margin-right:8px;
    flex-shrink:0;
}

.user-menu-button{
    background:transparent;
    border:none;
    padding:0;
    border-radius:0;
    cursor:pointer;

    display:flex;
    align-items:center;
    gap:8px;

    font-weight:700;
    color:#45ad4d;
}

.topbar-dropdown-arrow{
    margin-left:4px;
}

.user-menu-dropdown a{
    display:flex;
    align-items:center;
    gap:10px;

    padding:11px 14px;

    color:#222;
    text-decoration:none;
    font-size:13px;
}

.user-menu-dropdown a svg{
    width:15px;
    height:15px;
    color:#666;
    stroke-width:2.1;
    flex-shrink:0;
}

.user-menu-dropdown a:hover{
    background:#f4f5f7;
}

.user-menu-dropdown a:hover svg{
    color:#45ad4d;
}

/* HELP WIKI */

.help-wiki-page{
    width:100%;
    max-width:none;
}

.help-main-header{
    margin-bottom:18px;
}

.help-warning-box{
    border-left:4px solid #45ad4d;
    margin-bottom:18px;
}

.help-warning-box h2{
    margin-top:0;
}

.help-warning-box p{
    font-size:13px;
    line-height:1.55;
    color:#333;
    font-weight:normal;
    margin-bottom:8px;
}

.help-index{
    margin-bottom:26px;
}

.help-index h2{
    margin-top:0;
}

.help-index-list{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.help-index-list a{
    display:flex;
    align-items:center;
    gap:7px;
    padding:8px 12px;
    border-radius:20px;
    background:#f4f5f7;
    color:#222;
    text-decoration:none;
    font-size:12px;
    font-weight:bold;
}

.help-index-list a:hover{
    background:#222;
    color:white;
}

.help-index-list i{
    width:15px;
    height:15px;
}

.help-section{
    margin-bottom:34px;
    scroll-margin-top:80px;
}

.help-section-header{
    display:flex;
    align-items:flex-start;
    gap:16px;
    background:white;
    border-radius:12px;
    padding:20px;
    margin-bottom:14px;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    border-left:5px solid #45ad4d;
}

.help-section-icon{
    width:44px;
    height:44px;
    border-radius:12px;
    background:#45ad4d;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.help-section-icon i{
    width:24px;
    height:24px;
}

.help-section-header h2{
    margin:0 0 8px 0;
    font-size:24px;
}

.help-section-header p{
    margin:0;
    font-size:14px;
    line-height:1.55;
    color:#444;
    font-weight:normal;
}

.help-block{
    margin-bottom:12px;
}

.help-block h3{
    margin:0 0 10px 0;
    font-size:16px;
    color:#111;
}

.help-block p{
    font-size:13px;
    line-height:1.6;
    color:#333;
    font-weight:normal;
    margin-bottom:9px;
}

.help-block ul{
    margin:10px 0 0 18px;
    padding:0;
}

.help-block li{
    font-size:13px;
    line-height:1.55;
    color:#333;
    margin-bottom:6px;
}

@media(max-width:800px){
    .help-section-header{
        flex-direction:column;
    }

    .help-index-list{
        flex-direction:column;
    }

    .help-index-list a{
        width:100%;
    }
}

.activity-back-row{
    margin:-4px 0 16px 0;
}

.activity-back-link{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:9px 14px;
    border-radius:8px;
    background:#222;
    color:white;
    text-decoration:none;
    font-size:12px;
    font-weight:bold;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    cursor:pointer;
}

.activity-back-link:hover{
    background:#222;
    color:white;
}

/* ACTIVITY TYPE BADGES - BLACK STYLE ONLY */

.activity-icon.badge-workout svg,
.activity-icon.badge-race svg,
.activity-icon.badge-climb svg,
.activity-icon.badge-event svg,
.activity-icon.badge-ride svg,
.activity-type-icon.badge-workout svg,
.activity-type-icon.badge-race svg,
.activity-type-icon.badge-climb svg,
.activity-type-icon.badge-event svg,
.activity-type-icon.badge-ride svg{
    width:22px;
    height:22px;
    stroke:white !important;
    color:white !important;
    stroke-width:2.4;
}

/* =========================
   COMPARISONS
========================= */

.comparison-section{
    margin-bottom:18px;
}

.comparison-section-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    margin-bottom:16px;
}

.comparison-section-header h2{
    margin:0 0 5px 0;
    font-size:19px;
}

.comparison-section-header p{
    margin:0;
    color:#666;
    font-size:13px;
    font-weight:normal;
}

.comparison-form{
    display:flex;
    align-items:flex-end;
    gap:12px;
    margin-bottom:18px;
    flex-wrap:wrap;
}

.comparison-form > div{
    width:240px;
}

.activity-compare-form{
    display:flex;
    align-items:flex-end;
    gap:12px;
    flex-wrap:wrap;
}

.activity-compare-form > div{
    width:520px;
    max-width:100%;
}

.activity-compare-form select{
    width:100%;
}

.comparison-form label{
    display:block;
    font-size:10px;
    color:#666;
    font-weight:bold;
    text-transform:uppercase;
    margin-bottom:6px;
}

.comparison-form select{
    width:100%;
    padding:9px 11px;
    border:1px solid #ddd;
    border-radius:8px;
    background:white;
    font-size:12px;
    font-weight:bold;
}

.comparison-form button{
    border:none;
    background:#222;
    color:white;
    border-radius:8px;
    padding:9px 13px;
    font-size:12px;
    font-weight:bold;
    cursor:pointer;
    width:auto;
    flex:0 0 auto;
}

.comparison-form button:hover{
    background:#222;
}

.comparison-title-row{
    display:grid;
    grid-template-columns:1fr 80px 1fr;
    gap:12px;
    align-items:center;
    margin-bottom:12px;
}

.comparison-title-row div{
    background:#f4f5f7;
    border-radius:9px;
    padding:12px;
    font-size:14px;
    font-weight:bold;
    text-align:center;
}

.comparison-title-row div:nth-child(2){
    background:#222;
    color:white;
}

.comparison-table{
    width:100%;
    border-collapse:collapse;
}

.comparison-table th{
    background:#f8f8f8;
    color:#555;
    font-size:11px;
    text-transform:uppercase;
}

.comparison-table th,
.comparison-table td{
    padding:10px 9px;
    border-bottom:1px solid #eee;
    font-size:12px;
}

.comparison-diff{
    font-weight:bold;
}

.comparison-diff.positive{
    color:#2eaf52;
}

.comparison-diff.negative{
    color:#d64545;
}

.comparison-diff.neutral{
    color:#666;
}

.comparison-type{
    display:flex;
    align-items:center;
    gap:8px;
}

.comparison-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    display:inline-block;
    flex-shrink:0;
}

.comparison-dot.badge-workout{
    background:#316be8;
}

.comparison-dot.badge-race{
    background:#d64545;
}

.comparison-dot.badge-climb{
    background:#8c4de8;
}

.comparison-dot.badge-event{
    background:#e89531;
}

.comparison-dot.badge-ride{
    background:#45ad4d;
}

.activity-comparison-head{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-bottom:14px;
}

.activity-comparison-head div{
    background:#f4f5f7;
    border-radius:10px;
    padding:13px;
}

.activity-comparison-head span{
    display:block;
    font-size:10px;
    color:#666;
    font-weight:bold;
    text-transform:uppercase;
    margin-bottom:6px;
}

.activity-comparison-head strong{
    display:block;
    font-size:14px;
    margin-bottom:5px;
}

.activity-comparison-head small{
    display:block;
    color:#666;
    font-size:11px;
}

@media(max-width:1000px){
    .comparison-form,
    .activity-compare-form,
    .activity-comparison-head{
        grid-template-columns:1fr;
    }

    .comparison-title-row{
        grid-template-columns:1fr;
    }
}

.comparison-metric-label{
    display:flex;
    align-items:center;
    gap:7px;
}

.comparison-metric-label svg{
    width:15px;
    height:15px;
    color:#45ad4d;
    stroke-width:2.2;
    flex-shrink:0;
}

.activity-type-row{
    margin-top:7px;
}

.metric-item span{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
}

.metric-item span svg{
    width:13px;
    height:13px;
    stroke-width:2.2;
    color:#45ad4d;
    flex-shrink:0;
    position:relative;
    top:-1px;
}

.dashboard-goals-card .goal-item > div:first-child{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.dashboard-goals-card .goal-item > div:first-child > span{
    margin-bottom:0;
}

.dashboard-goals-card .goal-value{
    margin:0;
}

/* CALENDAR SELECTS PREMIUM */

.calendar-selectors select,
.calendar-main-controls select{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    min-width:105px;
    padding:9px 34px 9px 13px;

    border:1px solid #e0e0e0;
    border-radius:9px;
    background:
        linear-gradient(45deg, transparent 50%, #222 50%),
        linear-gradient(135deg, #222 50%, transparent 50%),
        #ffffff;
    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50%,
        100% 0;
    background-size:
        5px 5px,
        5px 5px,
        100% 100%;
    background-repeat:no-repeat;

    font-size:13px;
    font-weight:700;
    color:#111;

    cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,0.04);
}

.calendar-selectors select:hover,
.calendar-main-controls select:hover{
    border-color:#45ad4d;
}

.calendar-selectors select:focus,
.calendar-main-controls select:focus{
    outline:none;
    border-color:#45ad4d;
    box-shadow:0 0 0 3px rgba(69,173,77,0.12);
}

/* PROFILE ICONS */

.profile-table-label{
    display:flex;
    align-items:center;
    gap:7px;
}

.profile-table-label svg{
    width:14px;
    height:14px;
    color:#45ad4d;
    stroke-width:2.2;
    flex-shrink:0;
}

.profile-header + h2,
.profile-header + h2 ~ h2{
    /* No tocamos títulos de sección */
}

.profile-header ~ .stats-grid .card h3 svg{
    width:15px;
    height:15px;
    color:#45ad4d;
    stroke-width:2.2;
    flex-shrink:0;
    position:relative;
    top:-1px;
}

.activity-map-stats i,
.activity-summary-grid i {
    width: 22px;
    height: 22px;
    color: #45ad4d;
    margin-bottom: 6px;
}

.activity-summary-grid .card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-summary-grid .card h3 {
    margin: 0;
}

.activity-summary-grid .card p {
    margin: 0;
}

.segment-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.segment-name-cell i {
    width: 18px;
    height: 18px;
    color: #45ad4d;
    flex-shrink: 0;
}

.segment-pr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #45ad4d;
    font-weight: 700;
}

.segment-pr i {
    width: 16px;
    height: 16px;
}

.segment-rank {
    font-weight: 600;
}

.segment-pr-inline{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-weight:bold;
}

.segment-pr-inline svg{
    width:14px;
    height:14px;
    color:#d4a017;
    stroke-width:2.2;
    flex-shrink:0;
}

.topbar-brand{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.topbar-brand-main{
    font-size:15px;
    font-weight:700;
    color:#111;
    letter-spacing:-0.2px;
}

.topbar-brand-sub{
    margin-top:3px;
    font-size:11px;
    color:#777;
    font-weight:600;
}
