/* Precision Stopwatch - Purple Theme */

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.container {
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.6;
}

.breadcrumb span {
    color: white;
    font-weight: 600;
}

/* Tool Info */
.tool-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.tool-details h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tool-details p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.tool-meta {
    display: flex;
    gap: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.meta-item i {
    color: #ffd700;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 70vh;
}

.stopwatch-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Main Stopwatch */
.stopwatch-main {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
    overflow: hidden;
}

.stopwatch-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* Time Display */
.time-display {
    text-align: center;
    margin-bottom: 3rem;
}

.time-digits {
    font-family: 'Courier New', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(124, 58, 237, 0.1);
    letter-spacing: 0.1em;
}

.time-digits .separator {
    color: #7c3aed;
    margin: 0 0.2rem;
}

.time-digits .milliseconds {
    color: #a855f7;
    font-size: 0.8em;
}

.time-label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Control Buttons */
.control-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.control-btn i {
    font-size: 1.5rem;
}

.start-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.start-btn.stop {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.start-btn.stop:hover {
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
}

.lap-btn {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.lap-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
}

.split-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.split-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(107, 114, 128, 0.4);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Settings Panel */
.settings-panel {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #d1d5db;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.setting-item label i {
    color: #7c3aed;
    width: 16px;
}

.setting-item select {
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
}

.setting-item select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Results Panel */
.results-panel {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.1);
    overflow: hidden;
    position: relative;
    height: fit-content;
}

.results-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.panel-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.panel-header h3 i {
    color: #7c3aed;
}

.panel-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #6b7280;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn-small:hover {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    transform: translateY(-1px);
}

/* Results Sections */
.results-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f3f4f6;
}

.results-section:last-child {
    border-bottom: none;
}

.results-section h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.results-section h4 i {
    color: #7c3aed;
    font-size: 1rem;
}

.results-list {
    max-height: 200px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #9ca3af;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateX(2px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.result-number {
    font-weight: 600;
    color: #7c3aed;
    font-size: 0.9rem;
    min-width: 40px;
}

.result-time {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.result-diff {
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
}

.result-diff.faster {
    color: #10b981;
}

.result-diff.slower {
    color: #ef4444;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

.stat-value {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Content Sections */
.info-section,
.usage-section,
.calculation-section,
.use-cases-section,
.faq-section {
    padding: 5rem 0;
    position: relative;
}

.info-section {
    background: white;
}

.usage-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.calculation-section {
    background: white;
}

.use-cases-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.faq-section {
    background: white;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.info-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* Steps Flow Design */
.steps-flow {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.step-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-item:last-child {
    margin-bottom: 2rem;
}

.step-visual {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.step-item:hover .step-circle {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.step-icon {
    font-size: 2.5rem;
    margin-top: 1rem;
}

.step-content {
    flex: 1;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 20px 20px 0 0;
}

.step-item:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}

.step-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-content p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Step Options */
.step-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.option-tag {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #7c3aed;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.option-tag:hover {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    transform: translateY(-2px);
}

/* Step Details */
.step-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 12px;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateX(5px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1);
}

.detail-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-item span {
    color: #374151;
    font-weight: 500;
    font-size: 1rem;
}

/* Step Features */
.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.feature-badge i {
    font-size: 1rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #7c3aed;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(124, 58, 237, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.action-btn i {
    font-size: 1.1rem;
}

/* Step Arrows */
.step-arrow {
    position: absolute;
    left: 60px;
    bottom: -2rem;
    transform: translateX(-50%);
    z-index: 1;
}

.step-arrow i {
    font-size: 2rem;
    color: #7c3aed;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

.step-item:last-child .step-arrow {
    display: none;
}

/* Quick Tips */
.quick-tips {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    margin-top: 3rem;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tips-header i {
    color: #f59e0b;
    font-size: 1.5rem;
}

.tips-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
}

.tip-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tip-item span {
    color: #374151;
    font-weight: 500;
    line-height: 1.5;
}

/* Calculation Showcase */
.calculation-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.calculation-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.calc-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: 50px;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.calc-tab:hover {
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
}

.calc-tab.active {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: #7c3aed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.calc-tab i {
    font-size: 1.2rem;
}

.calculation-content {
    position: relative;
}

.calc-panel {
    display: none;
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
    overflow: hidden;
}

.calc-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.calc-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    animation: fadeInUp 0.6s ease-out;
}

.calc-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.visual-diagram {
    width: 100%;
    max-width: 400px;
}

/* Timing Flow Visual */
.timing-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.timing-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.timing-marker {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.timing-point.start .timing-marker {
    background: linear-gradient(135deg, #10b981, #059669);
}

.timing-point.end .timing-marker {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.timing-point span {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    text-align: center;
}

.timing-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #7c3aed;
}

.timing-arrow i {
    font-size: 2rem;
    font-weight: 700;
}

.timing-arrow span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Lap Timeline Visual */
.lap-timeline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.lap-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.lap-marker {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.lap-time {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

/* Analysis Chart Visual */
.analysis-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.5rem;
    height: 150px;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
}

.bar {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 4px 4px 0 0;
    flex: 1;
    min-height: 20px;
    transition: all 0.3s ease;
}

.bar:hover {
    transform: scaleY(1.1);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Calculation Details */
.calc-details h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 16px;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

.feature-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case-category {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.use-case-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.use-case-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.15);
}

.use-case-category h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.use-case-category h3 i {
    color: #7c3aed;
    font-size: 1.2rem;
}

.use-case-category ul {
    list-style: none;
    padding: 0;
}

.use-case-category li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
}

.use-case-category li::before {
    content: '•';
    color: #7c3aed;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #7c3aed;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 2rem 2rem;
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar Styling */
.results-list::-webkit-scrollbar {
    width: 6px;
}

.results-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.results-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 3px;
}

.results-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .stopwatch-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .results-panel {
        order: 2;
    }

    .stopwatch-main {
        order: 1;
    }

    .tool-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .tool-meta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tool-header {
        padding: 1.5rem 0;
    }

    .tool-details h1 {
        font-size: 2rem;
    }

    .tool-details p {
        font-size: 1.1rem;
    }

    .tool-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .main-content {
        padding: 2rem 0;
    }

    .stopwatch-container {
        gap: 1.5rem;
        /* padding: 0 1rem; */
    }

    .stopwatch-main {
        padding: 2rem;
    }

    .time-digits {
        font-size: 3rem;
    }

    .control-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .control-btn {
        padding: 1.25rem;
        font-size: 0.9rem;
    }

    .control-btn i {
        font-size: 1.3rem;
    }

    .settings-panel {
        padding: 1.5rem;
    }

    .results-panel {
        margin: 0 1rem;
    }

    .panel-header {
        padding: 1.5rem 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .results-section {
        padding: 1.25rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .calc-panel.active {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .calc-visual {
        order: 2;
        padding: 1rem;
    }

    .calc-details {
        order: 1;
    }

    .calc-details h3 {
        font-size: 1.6rem;
        text-align: center;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .timing-flow {
        flex-direction: column;
        gap: 1.5rem;
    }

    .timing-arrow {
        transform: rotate(90deg);
    }

    .lap-timeline {
        flex-direction: column;
        gap: 1rem;
    }

    .chart-bars {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .tool-header {
        padding: 1rem 0;
    }

    .tool-details h1 {
        font-size: 1.8rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .stopwatch-main {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .time-digits {
        font-size: 2.5rem;
    }

    .time-digits .milliseconds {
        font-size: 0.7em;
    }

    .time-label {
        font-size: 0.8rem;
    }

    .control-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .control-btn {
        padding: 1rem;
        font-size: 0.85rem;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }

    .control-btn i {
        font-size: 1.1rem;
    }

    .settings-panel {
        padding: 1.25rem;
    }

    .setting-item {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .setting-item label {
        font-size: 0.9rem;
    }

    .setting-item select {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .results-panel {
        margin: 0 0.5rem;
    }

    .panel-header {
        padding: 1.25rem;
    }

    .panel-header h3 {
        font-size: 1.1rem;
    }

    .action-btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .results-section {
        padding: 1rem 1.25rem;
    }

    .results-section h4 {
        font-size: 1rem;
    }

    .result-item {
        padding: 0.6rem 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .result-number {
        min-width: auto;
    }

    .result-time {
        font-size: 0.9rem;
    }

    .result-diff {
        font-size: 0.75rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .step-circle {
        width: 80px;
        height: 80px;
    }

    .step-number {
        font-size: 1.1rem;
        top: 10px;
    }

    .step-icon {
        font-size: 1.8rem;
        margin-top: 0.5rem;
    }

    .step-content {
        padding: 1.5rem;
    }

    .step-content h3 {
        font-size: 1.3rem;
    }

    .option-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .detail-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .feature-badge {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .quick-tips {
        padding: 1.5rem;
    }

    .tips-header h4 {
        font-size: 1.3rem;
    }

    .tip-item {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .info-section,
    .usage-section,
    .calculation-section,
    .use-cases-section,
    .faq-section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .info-card,
    .use-case-category {
        padding: 1.5rem;
    }

    .calc-panel.active {
        padding: 1.5rem;
    }

    .calc-details h3 {
        font-size: 1.4rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer-content {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.9rem;
    }

    .calculation-tabs {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .calc-tab {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .step-arrow {
        left: 50%;
        bottom: -1.5rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .use-case-category h3 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .faq-container {
        padding: 0 1rem;
    }

    .timing-marker {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .lap-marker {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .lap-time {
        font-size: 0.8rem;
    }

    .chart-bars {
        height: 100px;
        padding: 0.75rem;
    }

    .chart-labels {
        font-size: 0.7rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {

    .stopwatch-main,
    .results-panel {
        background: #1f2937;
        border-color: rgba(124, 58, 237, 0.3);
    }

    .time-digits {
        color: #f3f4f6;
    }

    .time-label {
        color: #d1d5db;
    }

    .settings-panel {
        background: linear-gradient(135deg, #374151, #4b5563);
        border-color: #6b7280;
    }

    .setting-item label {
        color: #f3f4f6;
    }

    .setting-item select {
        background: #374151;
        border-color: #4b5563;
        color: white;
    }

    .setting-item select:focus {
        border-color: #7c3aed;
    }

    .panel-header h3 {
        color: #f3f4f6;
    }

    .results-section h4 {
        color: #f3f4f6;
    }

    .result-item {
        background: linear-gradient(135deg, #374151, #4b5563);
        border-color: #6b7280;
    }

    .result-time {
        color: #f3f4f6;
    }

    .stat-item {
        background: linear-gradient(135deg, #374151, #4b5563);
        border-color: #6b7280;
    }

    .stat-value {
        color: #a855f7;
    }

    .stat-label {
        color: #d1d5db;
    }

    .empty-state {
        color: #6b7280;
    }
}

/* Print Styles */
@media print {

    .tool-header,
    .info-section,
    .usage-section,
    .calculation-section,
    .use-cases-section,
    .faq-section,
    .footer {
        display: none;
    }

    .main-content {
        padding: 0;
        background: white;
    }

    .stopwatch-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stopwatch-main,
    .results-panel {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    .control-buttons {
        display: none;
    }

    .settings-panel {
        display: none;
    }

    .time-digits {
        color: #000;
    }

    .result-item {
        background: white;
        border: 1px solid #ccc;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    color: #1f2937;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #7c3aed;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: #10b981;
    color: #000;
}

.notification.success i {
    color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.error i {
    color: #ef4444;
}

.notification.info {
    border-left-color: #3b82f6;
    color: #000;
}

.notification.info i {
    color: #3b82f6;
}

.notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Fastest/Slowest lap highlighting */
.result-item.fastest {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #10b981;
}

.result-item.fastest .result-time {
    color: #059669;
    font-weight: 700;
}

.result-item.slowest {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border-color: #ef4444;
}

.result-item.slowest .result-time {
    color: #dc2626;
    font-weight: 700;
}

/* Enhanced time display animations */
.time-digits {
    transition: all 0.1s ease;
}

.time-digits.pulse {
    transform: scale(1.02);
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

/* Running state indicator */
.stopwatch-main.running::before {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Focus states for accessibility */
.control-btn:focus {
    outline: 3px solid rgba(124, 58, 237, 0.3);
    outline-offset: 2px;
}

.setting-item select:focus {
    outline: 3px solid rgba(124, 58, 237, 0.3);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .time-digits {
        text-shadow: none;
        font-weight: 900;
    }

    .control-btn {
        border: 2px solid currentColor;
    }

    .result-item {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .control-btn,
    .result-item,
    .stat-item,
    .step-item,
    .info-card,
    .use-case-category,
    .faq-item {
        transition: none;
    }

    .step-item {
        opacity: 1;
        transform: none;
    }

    .notification {
        transition: opacity 0.3s ease;
        transform: translateX(0);
    }

}