/* timer-plugin.css - 可拖动计时器样式 */

.timer-plugin {
    all: initial;
    position: fixed;
    left: 80px;
    top: 80px;
    width: 300px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 36px;
    border: none;
    box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 0 1px rgba(255, 255, 255, 0.5);
    color: #0a1a2f;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    z-index: 5000;
    user-select: none;
    transition: height 0.2s ease;
    overflow: hidden;
}

.timer-plugin.collapsed .timer-display,
.timer-plugin.collapsed .button-group {
    display: none;
}

.timer-plugin .drag-bar {
    background: rgba(255, 255, 255, 0.3);
    padding: 14px 16px 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    transition: background 0.1s;
    border-radius: 36px 36px 0 0;
}

.timer-plugin .drag-bar:active {
    cursor: grabbing;
    background: rgba(255, 255, 255, 0.5);
}

.timer-plugin .drag-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #0b2b40;
}

.timer-plugin .drag-bar-left span {
    background: rgba(0,30,60,0.15);
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
}

.timer-plugin .hide-btn {
    background: rgba(0, 0, 0, 0.12);
    border: none;
    border-radius: 30px;
    width: 58px;
    padding: 5px 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e2f47;
    cursor: pointer;
    transition: all 0.15s;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}

.timer-plugin .hide-btn:hover {
    background: rgba(0, 0, 0, 0.25);
    color: white;
}

.timer-plugin .timer-display {
    background: rgba(255,255,255,0.4);
    margin: 16px 16px 8px 16px;
    padding: 24px 10px;
    border-radius: 50px;
    text-align: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06), 0 4px 12px rgba(0,20,40,0.2);
    border: 1px solid rgba(255,255,255,0.6);
}

.timer-plugin .time {
    font-family: 'Verdana', 'Fira Code', monospace;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: #031020;
    text-shadow: 0 2px 5px rgba(255,255,255,0.5);
    line-height: 1.2;
}

.timer-plugin .button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 20px 16px;
    min-height: 72px;
}

.timer-plugin .shape-btn {
    flex: 1;
    background: rgba(240, 248, 255, 0.6);
    border: none;
    border-radius: 40px;
    padding: 12px 0;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    color: #122b44;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 8px rgba(0, 10, 20, 0.2), 0 1px 2px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.08s linear;
    border: 1px solid rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-plugin .shape-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    background: rgba(220, 240, 255, 0.9);
}

.timer-plugin .shape-btn.end-btn {
    background: rgba(255, 210, 210, 0.7);
    color: #5d1e1e;
}

/* 分裂动画 */
.timer-plugin .split-left {
    animation: splitPopLeft 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

.timer-plugin .split-right {
    animation: splitPopRight 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

@keyframes splitPopLeft {
    0% { transform: scale(0.4) translateX(0); opacity: 0; }
    30% { transform: scale(1.1) translateX(-14px); opacity: 1; }
    80% { transform: scale(1) translateX(2px); }
    100% { transform: scale(1) translateX(0); opacity: 1; }
}

@keyframes splitPopRight {
    0% { transform: scale(0.4) translateX(0); opacity: 0; }
    30% { transform: scale(1.1) translateX(14px); opacity: 1; }
    80% { transform: scale(1) translateX(-2px); }
    100% { transform: scale(1) translateX(0); opacity: 1; }
}