body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}
.site-nav {
    padding: 15px 0;
    margin-bottom: 20px;
}
.site-nav .nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}
.site-nav .nav-brand img {
    height: 35px;
    width: auto;
    margin-right: 10px;
}
.site-nav .nav-brand:hover {
    color: white;
    opacity: 0.9;
}
.site-nav .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}
.site-nav .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.site-nav .nav-links a:hover {
    opacity: 1;
    color: white;
}
.hero-section {
    padding: 30px 50px;
    text-align: center;
    color: white;
}
.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    /*margin-bottom: 20px;*/
    gap: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section img{
    height: 50px;
    width: auto;
}
.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}
.tools-section {
    padding: 40px 0;
}
.category-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tool-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block;
    text-decoration: none;
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}
.tool-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}
.tool-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.tool-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}
.footer {
    padding: 2rem 0;
    text-align: center;
    color: #333!important;
}

.footer a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}
.tool-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.tool-subtitle {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.tool-subtitle p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}
.tool-main {
    margin-bottom: 30px;
}
.tool-panel {
    height: 100%;
}
.tool-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}
.tool-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}
.tool-textarea:focus {
    outline: none;
    border-color: #667eea;
}
.tool-actions {
    text-align: center;
    margin: 25px 0;
}
.tool-actions .btn {
    margin: 0 10px;
    padding: 12px 30px;
}
.result-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}
.result-title {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.result-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}
.result-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}
.result-table td {
    vertical-align: middle;
}
.highlight-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}
.highlighted-text {
    background: white;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.keyword-highlight {
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}
.tool-faq {
    padding-top: 25px;
    border-top: 1px solid #eee;
}
.tool-faq h4 {
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}
.about-title {
    color: #333;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 25px;
}
.about-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.about-content h5 {
    color: #333;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}
.privacy-content h5 {
    color: #333;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}
.privacy-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}
.privacy-content ul {
    color: #555;
    margin-bottom: 15px;
    padding-left: 25px;
}
.privacy-content li {
    margin-bottom: 8px;
}
.stopwatch-display {
    font-family: 'Courier New', monospace;
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}
.stopwatch-controls {
    text-align: center;
    margin: 25px 0;
}
.stopwatch-controls .btn {
    margin: 0 8px;
    padding: 12px 30px;
    min-width: 120px;
}
.laps-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}
@media (max-width: 768px) {
    .stopwatch-display {
        font-size: 2.5rem;
        padding: 30px 15px;
    }
    .stopwatch-controls .btn {
        margin: 5px;
        padding: 10px 20px;
        min-width: 100px;
    }
}
.tool-input {
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}
.tool-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.result-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.result-text {
    font-size: 1.25rem;
    color: #333;
    margin: 0;
}
.result-text strong {
    color: #667eea;
    font-size: 1.5rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 25px 0;
}
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-value {
        font-size: 1.5rem;
    }
}
.result-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}
.result-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}
.result-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}
.result-table td,
.result-table th {
    padding: 12px 15px;
    vertical-align: middle;
}
.result-table code {
    background: #f1f3f4;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #667eea;
}