/* ==================== EXTRACTED INLINE STYLES ==================== */
/* Originally inline in index.html (lines 2148-3020) - 872 lines */

/* Update Banner Animation */
@keyframes slideUp{from{bottom:-100px;opacity:0}to{bottom:20px;opacity:1}}
#updateBtn:hover{background:#f0f0f0;transform:translateY(-1px);}
#dismissUpdate:hover{background:rgba(255,255,255,0.1);}
@media (max-width:480px){
  #updateBanner{width:calc(100% - 24px);flex-direction:column;gap:12px;}
  #updateBanner>div{text-align:center;}
  #updateBtn,#dismissUpdate{width:100%;padding:12px;}
}

/* ==================== WEEK OVERVIEW - BOLD PLAYFUL (OPTION 3) ==================== */

.week-chart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 4px 16px 4px;
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ring-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex: 1;
}

.ring-day:hover {
    transform: scale(1.08);
}

.ring-day:active {
    transform: scale(0.98);
}

/* Touch devices: use active instead of hover */
@media (hover: none) {
    .ring-day:active {
        transform: scale(1.08);
    }
}

.ring-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(var(--ring-color, #333) var(--fill-percent, 0%), rgba(42, 42, 42, 0.3) var(--fill-percent, 0%));
    padding: 5px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: all 0.2s ease;
}

.ring-day:hover .ring-wrap {
    filter: drop-shadow(0 4px 12px var(--ring-color, #333));
}

.ring-arc {
    display: none; /* Not needed - gradient is on ring-wrap now */
}

.ring-center {
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    z-index: 1;
    position: relative;
}

.ring-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    transition: color 0.2s ease;
}

.ring-day:hover .ring-label {
    color: var(--ring-color, #666);
}

/* Color states - set CSS variables */
.ring-day.empty {
    --ring-color: #333;
    --fill-percent: 0%;
}

.ring-day.empty .ring-center {
    color: #666;
}

.ring-day.empty .ring-label {
    color: #666;
}

.ring-day.green {
    --ring-color: #22c55e;
}

.ring-day.green .ring-center {
    color: #22c55e;
}

.ring-day.lime {
    --ring-color: #84cc16;
}

.ring-day.lime .ring-center {
    color: #84cc16;
}

.ring-day.yellow {
    --ring-color: #eab308;
}

.ring-day.yellow .ring-center {
    color: #eab308;
}

.ring-day.orange {
    --ring-color: #f97316;
}

.ring-day.orange .ring-center {
    color: #f97316;
}

.ring-day.red,
.ring-day.deep-red {
    --ring-color: #ef4444;
}

.ring-day.red .ring-center,
.ring-day.deep-red .ring-center {
    color: #ef4444;
}

.ring-day.today .ring-label {
    color: #4a7ce8;
    font-weight: 900;
}

.ring-day.selected .ring-wrap {
    transform: scale(1.08);
    box-shadow: 0 0 0 2px #4a7ce8, 0 0 20px rgba(74, 124, 232, 0.4);
}

.ring-day.saturday .ring-label,
.ring-day.sunday .ring-label {
    color: #4a7ce8;
}

.ring-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ring-day.disabled:hover {
    transform: none;
    filter: none;
}

/* Bounce animation for active day */
@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.ring-day.selected .ring-wrap {
    animation: bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 400px) {
    .week-chart {
        gap: 6px;
        padding: 12px 8px 16px;
    }
    .ring-wrap {
        width: 48px;
        height: 48px;
        padding: 4px;
    }
    .ring-center {
        font-size: 14px;
    }
    .ring-label {
        font-size: 9px;
    }
}

/* ==================== MODAL HEADER ACTIONS - SEPARATED (OPTION 2) ==================== */

.modal-actions {
    display: flex;
    gap: 8px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.modal-actions button {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.modal-actions button.primary {
    background: #4a7ce8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 124, 232, 0.3);
}

.modal-actions button.primary:hover {
    background: #5b8ef5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 232, 0.4);
}

.modal-actions button.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 124, 232, 0.3);
}

.modal-actions button.secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    padding: 9px 12px;
}

.modal-actions button.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.modal-actions button.secondary:active {
    background: rgba(255, 255, 255, 0.03);
}

.modal-actions button.ghost {
    background: transparent;
    color: #888;
    padding: 10px 12px;
}

.modal-actions button.ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.modal-actions button.ghost:active {
    background: rgba(255, 255, 255, 0.02);
}

.modal-actions button svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Legacy class support */
.save-btn-header {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    background: #4a7ce8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 124, 232, 0.3);
}

.save-btn-header:hover {
    background: #5b8ef5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 232, 0.4);
}

.save-btn-header:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 124, 232, 0.3);
}

.save-btn-header svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

@media (max-width: 500px) {
    .modal-actions button span {
        display: none;
    }
    .modal-actions button {
        padding: 10px 12px;
    }
    .save-btn-header span {
        display: none;
    }
    .save-btn-header {
        padding: 10px 12px;
    }
}

/* ==================== PREMIUM LANGUAGE MODAL ==================== */

.language-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.language-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 24px 48px rgba(0, 0, 0, 0.5),
        0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.language-modal-overlay.active .language-modal {
    transform: scale(1);
}

.language-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(74, 124, 232, 0.4) 50%,
        transparent
    );
}

.language-modal-header {
    padding: 28px 28px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

.language-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.language-modal-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.language-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.language-modal-close:active {
    transform: scale(0.95);
}

.language-modal-close svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.6);
    transition: stroke 0.2s;
}

.language-modal-close:hover svg {
    stroke: rgba(255, 255, 255, 0.9);
}

.language-modal-body {
    padding: 8px;
}

.language-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin: 6px 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.language-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-option:hover::before {
    opacity: 1;
}

.language-option:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.language-option.active {
    background: linear-gradient(135deg,
        rgba(74, 124, 232, 0.08),
        rgba(74, 124, 232, 0.04)
    );
    border-color: rgba(74, 124, 232, 0.2);
    box-shadow:
        0 0 0 1px rgba(74, 124, 232, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.language-option.active::before {
    opacity: 0;
}

.language-option.active:hover {
    transform: none;
    border-color: rgba(74, 124, 232, 0.3);
}

.language-flag {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-option:hover .language-flag {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}

.language-option.active .language-flag {
    background: rgba(74, 124, 232, 0.15);
}

.language-info {
    flex: 1;
    text-align: left;
}

.language-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.language-code {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.language-check {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(74, 124, 232, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-option.active .language-check {
    opacity: 1;
    transform: scale(1);
}

.language-check svg {
    width: 14px;
    height: 14px;
    stroke: #4a7ce8;
    stroke-width: 2.5;
    fill: none;
}

.language-option:focus {
    outline: none;
    border-color: rgba(74, 124, 232, 0.4);
    box-shadow: 0 0 0 3px rgba(74, 124, 232, 0.1);
}

@keyframes languageSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-option {
    animation: languageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.language-option:nth-child(1) {
    animation-delay: 0.05s;
}

.language-option:nth-child(2) {
    animation-delay: 0.1s;
}

@media (max-width: 480px) {
    .language-modal {
        max-width: 100%;
        border-radius: 24px;
    }

    .language-modal-header {
        padding: 24px 24px 20px;
    }

    .language-modal-title {
        font-size: 18px;
    }

    .language-flag {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

/* Premium Language Switch for Share Modals */
.share-lang-switch {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.share-lang-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.share-lang-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.04);
}

.share-lang-btn.active {
    background: linear-gradient(135deg, rgba(74, 124, 232, 0.15), rgba(74, 124, 232, 0.08));
    color: #4a7ce8;
    box-shadow:
        0 0 0 1px rgba(74, 124, 232, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.share-lang-btn.active:hover {
    background: linear-gradient(135deg, rgba(74, 124, 232, 0.2), rgba(74, 124, 232, 0.12));
    color: #5a8cf8;
}

/* Guest Share Modal Language Buttons */
.share-lang {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(74, 124, 232, 0.15), rgba(74, 124, 232, 0.08));
    border-color: rgba(74, 124, 232, 0.3);
    color: #4a7ce8;
    box-shadow:
        0 0 0 1px rgba(74, 124, 232, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lang-btn.active:hover {
    transform: none;
}

.lang-btn .flag {
    display: inline-block;
    letter-spacing: 0.5px;
}

/* ==================== MODAL HEADER V2 LAYOUT ==================== */

.modal-header-v2 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.modal-header-v2 .header-left {
    flex: 1;
}

.modal-header-v2 h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.modal-header-v2 .subtitle {
    font-size: 14px;
    color: #888;
    margin-top: 2px;
}

/* Ensure modal-actions is horizontal */
.modal-header-v2 .modal-actions {
    flex-shrink: 0;
}

/* Hide day unit display - redundant & causes layout shift */
#dayUnitDisplay {
    display: none !important;
}

/* ==================== TELEGRAM-STYLE MODAL ACTIONS ==================== */

.modal-actions-telegram {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.modal-actions-telegram .icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-actions-telegram .icon-btn svg {
    width: 22px;
    height: 22px;
}

/* Hide any text in icon buttons - ICONS ONLY! */
.modal-actions-telegram .icon-btn span {
    display: none !important;
}

.modal-actions-telegram .icon-btn {
    font-size: 0 !important;
    padding: 0 !important;
}

/* Thicker strokes for all icons */
.modal-actions-telegram .btn-share svg,
.modal-actions-telegram .btn-duplicate svg,
.modal-actions-telegram .btn-close svg {
    stroke-width: 2.5;
    stroke: currentColor;
}

.modal-actions-telegram .btn-share {
    color: #fff;
}

.modal-actions-telegram .btn-duplicate {
    color: #fff;
}


/* Blue Save Button (StudioSync Brand Color) */
.modal-actions-telegram .btn-save {
    background: linear-gradient(135deg, #4a7ce8 0%, #3d6cd4 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 124, 232, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal-actions-telegram .btn-save svg {
    stroke: #fff !important;
    stroke-width: 3.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    fill: none !important;
}

.modal-actions-telegram .btn-save:hover {
    background: linear-gradient(135deg, #5b8ef5 0%, #4a7ce8 100%);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(74, 124, 232, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modal-actions-telegram .btn-save:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(74, 124, 232, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Share Button (Dark/Gray) */
.modal-actions-telegram .btn-share,
.modal-actions-telegram .btn-duplicate {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-actions-telegram .btn-share:hover,
.modal-actions-telegram .btn-duplicate:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.modal-actions-telegram .btn-share:active,
.modal-actions-telegram .btn-duplicate:active {
    background: rgba(255, 255, 255, 0.03);
    transform: scale(0.95);
}

/* Close Button (Same style as Share/Duplicate for consistency) */
.modal-actions-telegram .btn-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

.modal-actions-telegram .btn-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.02);
}

.modal-actions-telegram .btn-close:active {
    background: rgba(255, 255, 255, 0.03);
    transform: scale(0.95);
}

/* Touch device support */
@media (hover: none) {
    .modal-actions-telegram .icon-btn:active {
        transform: scale(0.95);
    }
}
