/* Time Duration Calculator — Ultra-refined responsive styles */

.tdc-hero-card {
    background: radial-gradient(130% 120% at 50% 0%, rgba(99, 102, 241, 0.12) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dark .tdc-hero-card {
    background: radial-gradient(130% 120% at 50% 0%, rgba(99, 102, 241, 0.15) 0%, rgba(15, 17, 23, 0.9) 100%);
}

.tdc-stat-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.tdc-stat-card:hover {
    transform: translateY(-2px);
}

.tdc-tab {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.625rem;
    color: #71717a;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: 1px solid transparent;
    min-height: 2.375rem;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 640px) {
    .tdc-tab {
        padding: 0.45rem 0.5rem;
        font-size: 0.775rem;
    }
}

.dark .tdc-tab {
    color: #a1a1aa;
}

.tdc-tab:hover {
    color: #18181b;
}

.dark .tdc-tab:hover {
    color: #ffffff;
}

.tdc-tab-active {
    background: #ffffff;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
}

.dark .tdc-tab-active {
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.35);
}

.tdc-chip {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: #4f46e5;
    transition: all 0.15s ease;
    white-space: nowrap;
    max-width: 100%;
}

.dark .tdc-chip {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
}

.tdc-chip:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.4);
}

.dark .tdc-chip:hover {
    background: rgba(99, 102, 241, 0.24);
    color: #ffffff;
}

.tdc-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    color: #18181b;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dark .tdc-input {
    background: rgba(24, 24, 27, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f4f4f5;
}

.tdc-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.dark .tdc-input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

@media (max-width: 640px) {
    .tdc-input {
        font-size: 16px !important;
    }
}

/* Dial progress circle */
.tdc-progress-ring-circle {
    transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Copy indicator feedback */
.copy-btn-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

/* Table styling for Decimal Hours Reference */
.tdc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.tdc-th {
    padding: 0.625rem 0.875rem;
    text-align: left;
    font-weight: 600;
    color: #71717a;
    border-bottom: 1px solid #e4e4e7;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .tdc-th {
    color: #a1a1aa;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.tdc-td {
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid #f4f4f5;
    color: #27272a;
}

.dark .tdc-td {
    border-bottom-color: rgba(255, 255, 255, 0.04);
    color: #e4e4e7;
}

.tdc-row-highlight {
    background: rgba(99, 102, 241, 0.05);
}

.dark .tdc-row-highlight {
    background: rgba(99, 102, 241, 0.12);
}

