/* Stopwatch & Timer Styles */
.tools-fab-container {
    position: fixed;
    right: 25px;
    bottom: 100px;
    /* Above Calendar FAB which is at 30px */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.tool-fab {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.tool-fab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) translateY(-5px);
    border-color: var(--accent-secondary);
}

.tool-fab.active {
    background: var(--accent-secondary);
    border-color: #fff;
}

/* Tool Widget */
.tool-widget {
    position: fixed;
    right: 90px;
    bottom: 30px;
    width: 350px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 25px;
    z-index: 1001;
    color: #fff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: bottom right;
}

.tool-widget.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tool-header h3 {
    font-size: 1.2rem;
    margin: 0;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.tool-tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer !important;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.tool-tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Display */
.time-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3.5rem;
    text-align: center;
    font-weight: bold;
    margin: 30px 0;
    text-shadow: 0 0 20px rgba(191, 0, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

/* Controls */
.tool-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tool-btn {
    padding: 12px 25px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer !important;
    transition: all 0.2s;
    font-family: inherit;
}

.tool-btn-primary {
    background: var(--accent-secondary);
    color: white;
}

.tool-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.tool-btn:active {
    transform: translateY(0);
}

/* Timer Specific */
.timer-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.timer-input {
    width: 60px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    outline: none;
}

.timer-input:focus {
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.1);
}

.timer-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}