/*
==========================================================
Global
==========================================================
*/

body {
    background: #f5f7fb;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

/*.icent-widget {
    margin-bottom: 20px;
}*/

.icent-widget .card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow: hidden;
}

.icent-widget .card-header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.icent-widget .card-body {
    background: #ffffff;
}

/*
==========================================================
Toolbar
==========================================================
*/

.widget-toolbar {
    display: flex;
    gap: 5px;
}

.widget-toolbar .btn {
    padding: .2rem .5rem;
}

/*
==========================================================
Fullscreen
==========================================================
*/

.widget-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #fff;
    overflow: auto;
    padding: 20px;
}

/*
==========================================================
Loader
==========================================================
*/

.widget-loader {
    text-align: center;
    padding: 30px;
}

.widget-loader .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
}

/*
==========================================================
Error
==========================================================
*/

.widget-error {
    background: #fff5f5;
    color: #dc3545;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

.widget-empty {
    text-align: center;
    color: #6c757d;
    padding: 30px;
}

/*
==========================================================
Greeting
==========================================================
*/

.greeting-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f1f1;
}

/*
==========================================================
Breathing Widget v3
==========================================================
*/

.breathing-stage {

    width: 280px;

    height: 280px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    overflow: hidden;
}

.breathing-shape {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    position: relative;

    transition: none;

    box-shadow: 0 0 25px rgba(0,0,0,.15);

    border: 4px solid rgba(255,255,255,.2);

    user-select: none;

    will-change: width,height;
}

.breathing-circle {

    border-radius: 50%;
}

.breathing-square {

    border-radius: 0;
}

.breathing-rounded {

    border-radius: 20px;
}

.breathing-title {

    font-size: 20px;

    font-weight: 600;

    margin-bottom: 10px;

    line-height: 1.2;
}

.breathing-count {

    font-size: 56px;

    font-weight: 700;

    line-height: 1;
}

.breathing-cycle {

    text-align: center;

    margin-top: 15px;

    font-weight: 600;
}

.breathing-controls {

    text-align: center;

    margin-top: 20px;
}

.breathing-controls .btn {

    min-width: 120px;
}

.breathing-progress {

    margin-top: 15px;
}

.breathing-status {

    text-align: center;

    margin-top: 10px;

    font-size: 13px;

    color: #6c757d;
}

.breathing-complete {

    color: #28a745;

    font-weight: 600;
}

.breathing-paused {

    color: #ffc107;

    font-weight: 600;
}

.breathing-running {

    color: #17a2b8;

    font-weight: 600;
}

/*
==========================================================
Shape Themes
==========================================================
*/

.breathing-theme-blue {

    background: #007bff;

    color: #ffffff;
}

.breathing-theme-green {

    background: #28a745;

    color: #ffffff;
}

.breathing-theme-purple {

    background: #6f42c1;

    color: #ffffff;
}

.breathing-theme-orange {

    background: #fd7e14;

    color: #ffffff;
}

/*
==========================================================
Mobile
==========================================================
*/

@media (max-width: 767px) {

    .breathing-stage {

        width: 240px;

        height: 240px;
    }

    .breathing-count {

        font-size: 44px;
    }

    .breathing-title {

        font-size: 18px;
    }

    .breathing-controls .btn {

        width: 100%;

        margin-bottom: 8px;
    }
}

/*
==========================================================
Timeline
==========================================================
*/

.timeline-vertical {
    position: relative;
    padding-left: 30px;
}

.timeline-vertical:before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
    left: -26px;
    top: 5px;
}

.timeline-content {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 12px;
}

.timeline-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 15px;
}

.timeline-horizontal .timeline-item {
    min-width: 250px;
}

/*
==========================================================
Weather Widget
==========================================================
*/

.weather-temperature {
    font-size: 42px;
    font-weight: bold;
}

.weather-icon {
    font-size: 50px;
}

/*
==========================================================
Announcement Widget
==========================================================
*/

.announcement-ticker {
    overflow: hidden;
    white-space: nowrap;
    animation: tickerMove 20s linear infinite;
}

@keyframes tickerMove {

    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }

}

/*
==========================================================
Calendar Widget
==========================================================
*/

.calendar-table {
    table-layout: fixed;
}

.calendar-table td {
    height: 100px;
    vertical-align: top;
    padding: 4px;
}

.calendar-date {
    font-weight: 600;
}

.calendar-today {
    background: #e8f4ff;
}

.calendar-day .badge {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    cursor: pointer;
}

/*
==========================================================
Carousel Widget
==========================================================
*/

.carousel-widget-slide img {
    width: 100%;
    border-radius: 10px;
}

.carousel-widget-item {
    animation: fadeInWidget .4s ease;
}

@keyframes fadeInWidget {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

/*
==========================================================
Countdown
==========================================================
*/

.countdown-value {
    font-size: 38px;
    font-weight: bold;
}

/*
==========================================================
Progress Widget
==========================================================
*/

/*.progress {
    height: 24px;
}

.progress-bar {
    font-weight: 600;
}*/

/*
==========================================================
Quiz Widget
==========================================================
*/

.quiz-question {
    font-size: 18px;
    font-weight: 600;
}

.quiz-option {
    padding: 8px;
    border-radius: 5px;
}

.quiz-option:hover {
    background: #f7f7f7;
}

/*
==========================================================
Task Widget
==========================================================
*/

.task-card {
    transition: all .2s ease;
}

.task-card:hover {
    transform: translateY(-2px);
}

.kanban-column {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
    min-height: 400px;
}

.kanban-title {
    font-weight: bold;
    margin-bottom: 10px;
}

/*
==========================================================
Dashboard Layout
==========================================================
*/

.widget-dashboard {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 15px;
}

.widget-col-12 {
    grid-column: span 12;
}

.widget-col-8 {
    grid-column: span 8;
}

.widget-col-6 {
    grid-column: span 6;
}

.widget-col-4 {
    grid-column: span 4;
}

.widget-col-3 {
    grid-column: span 3;
}

/*
==========================================================
Progress Ring
==========================================================
*/

.progress-ring {
    position: relative;
    margin: auto;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

/*
==========================================================
Animation Helpers
==========================================================
*/

.widget-fade-in {
    animation: widgetFade .5s ease;
}

@keyframes widgetFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

.widget-pulse {
    animation: widgetPulse 1.5s infinite;
}

@keyframes widgetPulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }

}

/*
==========================================================
Responsive
==========================================================
*/

@media (max-width: 991px) {

    .widget-dashboard {
        grid-template-columns: repeat(6, 1fr);
    }

    .widget-col-8,
    .widget-col-6,
    .widget-col-4,
    .widget-col-3 {
        grid-column: span 6;
    }

}

@media (max-width: 767px) {

    .widget-dashboard {
        grid-template-columns: repeat(1, 1fr);
    }

    .widget-col-12,
    .widget-col-8,
    .widget-col-6,
    .widget-col-4,
    .widget-col-3 {
        grid-column: span 1;
    }

    .calendar-table td {
        height: 80px;
    }

}