* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #e6fffa 100%);
    min-height: 100vh;
    padding: 20px 15px;
    font-size: 13px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.module {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    min-width: 100%;
}

.module h2 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid #667eea;
    padding-bottom: 6px;
    width: 100%;
}

.row-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.timestamp-display-inline,
.time-display-inline {
    font-size: 14px;
    font-weight: bold;
    padding: 8px 12px;
    background-color: #e8f4f8;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #2c3e50;
    flex: 0 0 auto;
    max-width: 40%;
    min-width: 160px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.converter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    width: 160px;
    transition: border-color 0.3s;
}

.input:focus {
    outline: none;
    border-color: #667eea;
}

.select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    width: auto;
}

.select:focus {
    outline: none;
    border-color: #667eea;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #2c3e50;
}

.radio-group input[type="radio"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.4);
}

.btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.3rem;
    }
    
    .container {
        max-width: 100%;
    }
    
    .row-control-group,
    .converter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timestamp-display-inline,
    .time-display-inline {
        flex: 1;
        max-width: 100%;
        font-size: 13px;
    }
    
    .input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.1rem;
    }
    
    .timestamp-display-inline,
    .time-display-inline {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 140px;
    }
}
